@Override
    public Iterator<E> iterator() {
        return new ElementIterator();
    }
@Test
    public void testIterator() {
        final int elementCount = 10;
        final BitSet foundElements = new BitSet(elementCount);
        final OAHashSet<Integer> set = new OAHashSet<>(8);
        populateSet(set, elementCount);

        for (int stored : set) {
            foundElements.set(stored);
        }

        for (int i = 0; i < elementCount; i++) {
            assertTrue(foundElements.get(i));
        }
    }