@Test
public void testElementsEqual() {

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