assertTrue("NoSuchElementException must be thrown", e.getClass().equals((new NoSuchElementException()).getClass()));
}
}
public void testReset() {
ResettableListIterator it = (ResettableListIterator) makeObject();
assertEquals(true, it.hasNext());
assertEquals(false, it.hasPrevious());
assertEquals(testValue, it.next());
assertEquals(false, it.hasNext());
assertEquals(true, it.hasPrevious());
it.reset();
assertEquals(true, it.hasNext());
assertEquals(false, it.hasPrevious());
assertEquals(testValue, it.next());
assertEquals(false, it.hasNext());
assertEquals(true, it.hasPrevious());
it.reset();
it.reset();
assertEquals(true, it.hasNext());
}