public < K > void assertContainsKey ( Description description , Map < ? , ? > actual , K key ) { assertNotNull ( description , actual ) ; if ( ! actual . containsKey ( key ) ) { throw failures . failure ( description , shouldContainKey ( actual , key ) ) ; } }
Asserts that the actual map contain the given key .