@Test
public void testAdvance() {

    CheckedIterator<String, RuntimeException> iterator;
    iterator = create("one");
    assertEquals(1, iterator.advance(1));
    iterator = create("one", "two");
    assertEquals(2, iterator.advance(3));
}