@Test
    public void testBiggerRemoveAll() {
        final int targetSize = 100;
        final TinyIdentitySet<Integer> t = new TinyIdentitySet<>(
                targetSize);
        final Integer[] instances = new Integer[targetSize];
        final List<Integer> remove = buildSubSet(targetSize, t, instances);
        t.removeAll(remove);
        assertEquals(targetSize / 2, t.size());
        for (final Iterator<Integer> i = t.iterator(); i.hasNext();) {
            final Integer n = i.next();
            assertTrue(n % 2 == 0);
            assertFalse(remove.contains(n));

        }
    }
Check TinyIdentitySet seems to work. :)

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
vespajlib/src/test/java/com/yahoo/collections/TinyIdentitySetTestCase.java