@Test
void testForEachRemaining() {

    final Set<Integer> set = new HashSet<>();
    assertTrue(instance.tryAdvance(set::add));
    instance.forEachRemaining(set::add);
    assertEquals(expectedSet, set);
}