void () { IntObjectMap<Object> map = ConcurrentCollectionFactory.createConcurrentIntObjectMap(); for (int i = 0; i < 1000; i++) { Object prev = map.put(i, i); assertNull(prev); Object ret = map.get(i); assertTrue(ret instanceof Integer); assertEquals(i, ret); if (i != 0) { Object remove = map.remove(i - 1); assertTrue(remove instanceof Integer); assertEquals(i - 1, remove); } assertEquals(1, map.size()); } map.clear(); assertEquals(0, map.size()); }