@Test
    public void testAddSimple() {
        PeekableListIterator<String> it = new PeekableListIterator<String>(strings.listIterator());

        it.add("a");
        it.add("b");
        it.add("c");
        assertEquals("0", it.next());

        assertEquals(9, strings.size());
        assertEquals("a", strings.get(0));
        assertEquals("b", strings.get(1));
        assertEquals("c", strings.get(2));
        assertEquals("0", strings.get(3));
        assertEquals("1", strings.get(4));
        assertEquals("2", strings.get(5));
        assertEquals("3", strings.get(6));
        assertEquals("4", strings.get(7));
        assertEquals("5", strings.get(8));
    }
Tests that PeekableListIterator behaves as expected.

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