private void bIteration(Iterator<Annotation> bAnnotations) {
        assertTrue(bAnnotations.hasNext());
        assertTrue(bAnnotations.hasNext());
        assertTrue(bAnnotations.hasNext());
        assertTrue(bAnnotations.hasNext());

        assertSame(numberB, bAnnotations.next());
        assertSame(b, numberB.getSpanNode());

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