Code example for Dictionary

Methods: put, remove

0
			// expected 
		} 
	} 
 
	public void testRemoveObject() { 
		assertNull(dict.remove(new Object()));
 
		Object key = new Object();
 
		dict.put(key, key);
 
		assertSame(key, dict.remove(key));
		assertNull(dict.remove(key));
	} 
 
	public void testRemoveNullObject() { 
		try { 
			dict.remove(null);
			fail("should have thrown NPE");
		} 
		catch (NullPointerException e) {