assertEquals( 3, orderedAndDocumentIterator.document() );
assertEquals( Interval.valueOf( 1, 4 ), orderedAndDocumentIterator.intervalIterator().nextInterval() );
assertEquals( Interval.valueOf( 2, 8 ), orderedAndDocumentIterator.intervalIterator().nextInterval() );
assertFalse( orderedAndDocumentIterator.intervalIterator().hasNext() );
assertEquals( 4, orderedAndDocumentIterator.nextDocument() );
assertEquals( 4, orderedAndDocumentIterator.document() );
assertEquals( Interval.valueOf( 2, 4 ), orderedAndDocumentIterator.intervalIterator().nextInterval() );
assertFalse( orderedAndDocumentIterator.intervalIterator().hasNext() );
assertEquals( 5, orderedAndDocumentIterator.nextDocument() );
assertEquals( 5, orderedAndDocumentIterator.document() );
assertEquals( Interval.valueOf( 1, 5 ), orderedAndDocumentIterator.intervalIterator().nextInterval() );