private void eIteration(Iterator<Annotation> eAnnotations) {
        assertTrue(eAnnotations.hasNext());
        assertTrue(eAnnotations.hasNext());
        assertTrue(eAnnotations.hasNext());
        assertTrue(eAnnotations.hasNext());

        assertSame(dummyE, eAnnotations.next());
        assertSame(e, dummyE.getSpanNode());

        assertFalse(eAnnotations.hasNext());
        assertFalse(eAnnotations.hasNext());
        assertFalse(eAnnotations.hasNext());
        assertFalse(eAnnotations.hasNext());
    }
Tests iterating through E's annotations in a tree.
document/src/test/java/com/yahoo/document/annotation/SpanTreeTestCase.java