private void dIteration(Iterator<Annotation> dAnnotations) {
        assertTrue(dAnnotations.hasNext());
        assertTrue(dAnnotations.hasNext());
        assertTrue(dAnnotations.hasNext());
        assertTrue(dAnnotations.hasNext());

        assertSame(dummyD, dAnnotations.next());
        assertSame(d, dummyD.getSpanNode());

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