@Override
    public void clear() {
        size = 0;
        Arrays.fill(hashes, 0);
        Arrays.fill(table, null);
        ++version;
    }
@Test
    public void testClear() {
        final OAHashSet<Integer> set = new OAHashSet<>(8);
        populateSet(set, 10);

        for (int i = 0; i < 10; i++) {
            final boolean contained = set.contains(i);
            assertTrue("Element " + i + " should be contained", contained);
        }

        set.clear();

        for (int i = 0; i < 10; i++) {
            final boolean contained = set.contains(i);
            assertFalse("Element " + i + " should not be contained", contained);
        }
    }