@Test
    public void testSimpleListIterator() {
        ListIterator<String> it = strings.listIterator();
        assertEquals("0", it.next());
        assertEquals("1", it.next());
        //cursor is before "2"
        assertEquals("1", it.previous());
        //cursor is before "1"
        assertEquals("0", it.previous());
        //cursor is before "0"
        //removing 0, it's the last one returned by next() or previous():
        it.remove();
        assertEquals("1", it.next());
    }
Tests that PeekableListIterator behaves as expected.

@author Einar M R Rosenvinge
document/src/test/java/com/yahoo/document/annotation/PeekableListIteratorTestCase.java