@Test
public void testGetWithDefault() {

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