@Override
    public @NotNull LongIterator iterator() {
        return new LinkedHashIterator();
    }
@Test
    public void iterator() {
        final LongLinkedHashSet tested = new LongLinkedHashSet();

        for (long i = 0; i < 10000; ++i) {
            tested.add(i);
        }
        long i = 0;
        for (Long key : tested) {
            Assert.assertEquals(i++, key.longValue());
            tested.remove(key);
        }
        Assert.assertEquals(0, tested.size());
    }