@Test
    public void testRemove() {
        final String string = "abc";
        final String a = new String(string);
        final String b = new String(string);
        final ArraySet<String> t = new ArraySet<>(2);
        t.add("abc");
        t.add("abd");
        t.add("abe");
        assertEquals(3, t.size());
        assertFalse(t.remove("ab"));
        assertTrue(t.remove("abd"));
        assertFalse(t.remove("abd"));
        assertEquals(2, t.size());
        assertTrue(t.remove("abe"));
        assertFalse(t.remove("abe"));
        assertTrue(t.remove("abc"));
        assertTrue(t.isEmpty());
    }
Check ArraySet seems to work. :)

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