@Test
    public void testIteration() {
        Span span = new Span(1, 2);
        ListIterator<SpanNode> b = span.childIterator();
        assertFalse(b.hasNext());
        assertFalse(b.hasPrevious());
        assertEquals(0, b.nextIndex());
        assertEquals(0, b.previousIndex());
        try {
            b.next();
            fail();
        } catch (NoSuchElementException nsee) {
            //ok
        }
        try {
            b.previous();
            fail();
        } catch (NoSuchElementException nsee) {
            //ok
        }
        try {
            b.remove();
            fail();
        } catch (UnsupportedOperationException uoe) {
            //ok
        }
        try {
            b.set(new Span(1, 1));
            fail();
        } catch (UnsupportedOperationException uoe) {
            //ok
        }
        try {
            b.add(new Span(1, 1));
            fail();
        } catch (UnsupportedOperationException uoe) {
            //ok
        }
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
document/src/test/java/com/yahoo/document/annotation/SpanTestCase.java