ConcurrentIdentityHashMap extends ConcurrentMapperHashMap<K, IdentityKey<K>, V, V> { public ConcurrentIdentityHashMap() { this(new ConcurrentHashMap<IdentityKey<K>, V>()); } ConcurrentIdentityHashMap();  ConcurrentIdentityHashMap(
		ConcurrentMap<IdentityKey<K>, V> innerConcurrentMap);  ConcurrentIdentityHashMap(int initialCapacity);  ConcurrentIdentityHashMap(
		int initialCapacity, float loadFactor, int concurrencyLevel);  ConcurrentIdentityHashMap(Map<? extends K, ? extends V> map);   }
@Test public void testConcurrentIdentityHashMap() { ConcurrentIdentityHashMap<String, Object> concurrentIdentityHashMap = new ConcurrentIdentityHashMap<>(); Assert.assertFalse(concurrentIdentityHashMap.containsKey(_TEST_KEY_1)); Assert.assertFalse( concurrentIdentityHashMap.containsValue(_testValue1)); Assert.assertFalse(concurrentIdentityHashMap.containsKey(_TEST_KEY_2)); Assert.assertFalse( concurrentIdentityHashMap.containsValue(_testValue2)); Assert.assertNull( concurrentIdentityHashMap.put(_TEST_KEY_1, _testValue1)); Assert.assertTrue(concurrentIdentityHashMap.containsKey(_TEST_KEY_1)); Assert.assertTrue(concurrentIdentityHashMap.containsValue(_testValue1)); Assert.assertFalse(concurrentIdentityHashMap.containsKey(_TEST_KEY_2)); Assert.assertFalse( concurrentIdentityHashMap.containsValue(_testValue2)); Assert.assertSame( _testValue1, concurrentIdentityHashMap.get(_TEST_KEY_1)); Assert.assertNull(concurrentIdentityHashMap.get(_TEST_KEY_2)); Assert.assertSame( _testValue1, concurrentIdentityHashMap.put(_TEST_KEY_1, _testValue2)); Assert.assertTrue(concurrentIdentityHashMap.containsKey(_TEST_KEY_1)); Assert.assertFalse( concurrentIdentityHashMap.containsValue(_testValue1)); Assert.assertFalse(concurrentIdentityHashMap.containsKey(_TEST_KEY_2)); Assert.assertTrue(concurrentIdentityHashMap.containsValue(_testValue2)); Assert.assertSame( _testValue2, concurrentIdentityHashMap.get(_TEST_KEY_1)); Assert.assertNull(concurrentIdentityHashMap.get(_TEST_KEY_2)); Set<String> keySet = concurrentIdentityHashMap.keySet(); Iterator<String> iterator = keySet.iterator(); Assert.assertSame(_TEST_KEY_1, iterator.next()); Assert.assertFalse(iterator.hasNext()); }