doc2 = s.doc();
assertFalse(s.next());
assertTrue(doc1 < doc2);
allTerms = index.getRange(ArrayBytes.EMPTY_BYTES, null, null, false, false, revNum);
assertTrue(allTerms.skipTo(doc1));
assertEquals(0, allTerms.term().compareTo(t1));
assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
assertEquals(0, allTerms.term().compareTo(t3));
assertEquals(NextStatus.NEXT_DOC, allTerms.nextTerm());