BitSetIterator { public boolean hasNext() { return position >= 0; } BitSetIterator(final BitSet set, final int from); boolean hasNext(); int next(); static BitSetIterator of(final BitSet set);  }
@Test void emptyHasNoNext() { final BitSetIterator iterator = newIterator(Collections.emptyList()); assertThat(iterator.hasNext()).isFalse(); }