@Test
public void testContains() {

    CheckedIterator<String, RuntimeException> iterator;
    iterator = create("one");
    assertTrue(iterator.contains("one"));
    iterator = create("one");
    assertFalse(iterator.contains("two"));
    iterator = create("one");
    iterator.next();
    assertFalse(iterator.contains("one"));
}