void () { int size = 51; UnmodifiableHashMap<Integer, String> map = create(size); for (int i = 0; i < size; i++) { map = map.without(i); assertEquals(size - 1 - i, map.size()); assertFalse(map.containsKey(i)); assertTrue(i == size - 1 || map.containsKey(i + 1)); } map = create(size); for (int i = size; i >= 0; i--) { map = map.without(i); assertEquals(i, map.size()); assertFalse(map.containsKey(i)); assertTrue(i == 0 || map.containsKey(i - 1)); } }