}
}
public void testReset() {
ResettableListIterator iter = (ResettableListIterator) makeFullIterator();
Object first = iter.next();
Object second = iter.next();
iter.reset();
// after reset, there shouldn't be any previous elements
assertFalse("No previous elements after reset()", iter.hasPrevious());
// after reset, the results should be the same as before
assertEquals("First element should be the same", first, iter.next());
assertEquals("Second elment should be the same", second, iter.next());
// after passing the point, where we resetted, continuation should work as expected
for (int i = 2; i < testArray.length; i++) {
Object testValue = testArray[i];
Object iterValue = iter.next();
assertEquals("Iteration value is correct", testValue, iterValue);
}
}