map.put("key1", "value1");
map.put("key2", "value2");
map.remove("key1");
assertTrue("Did not remove key1", !map.containsKey("key1"));
assertTrue("Did not remove the value for key1", !map
.containsValue("value1"));
assertTrue("Modified key2", map.get("key2") != null
&& map.get("key2") == "value2");
assertNull("Modified null entry", map.get(null));