@Test public void whenKeyIsPresent_thenContainsKeyReturnsTrue() { Map<String, String> map = Collections.singletonMap("key", "value"); assertTrue(map.containsKey("key")); assertFalse(map.containsKey("missing")); }