private void aIteration(Iterator<Annotation> aAnnotations) {
        assertTrue(aAnnotations.hasNext());
        assertTrue(aAnnotations.hasNext());
        assertTrue(aAnnotations.hasNext());
        assertTrue(aAnnotations.hasNext());

        assertSame(dummyA, aAnnotations.next());
        assertSame(a, dummyA.getSpanNode());

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