Collection vals = map.values();
boolean result = vals.remove(key);
assertTrue("removed entries incorrectly", map.size() == 11 && !result);
assertTrue("removed key incorrectly", map.containsKey(key));
assertTrue("removed value incorrectly", map.containsValue(value));
result = vals.remove(value);
assertTrue("Did not remove entry as expected", map.size() == 10
&& result);
assertTrue("Did not remove key as expected", !map.containsKey(key));