@Test
public void testNextWithDefault() {

    CheckedIterator<String, RuntimeException> iterator;
    iterator = create();
    assertEquals("hello", iterator.next("hello"));
    iterator = create("one");
    assertEquals("one", iterator.next("hello"));
    assertEquals("hello", iterator.next("hello"));
    iterator = create("one");
    iterator.next();
    assertEquals("hello", iterator.next("hello"));
}