void (ConcurrentLongObjectMap<Object> map) { for (long i = Long.MAX_VALUE-1000; i != Long.MIN_VALUE+1000; i++) { Object prev = map.put(i, i); assertNull(prev); Object ret = map.get(i); assertTrue(ret instanceof Long); assertEquals(i, ret); if (map.size() > 1) { Object remove = map.remove(i - 1); assertTrue(remove instanceof Long); assertEquals(i - 1, remove); } assertEquals(1, map.size()); } map.clear(); assertEquals(0, map.size()); assertTrue(map.isEmpty()); }