assertNotNull(memTermsIter.next());
assertEquals(iwTermsIter.term(), memTermsIter.term());
DocsAndPositionsEnum iwDocsAndPos = iwTermsIter.docsAndPositions(null, null);
DocsAndPositionsEnum memDocsAndPos = memTermsIter.docsAndPositions(null, null);
while(iwDocsAndPos.nextDoc() != DocsAndPositionsEnum.NO_MORE_DOCS) {
assertEquals(iwDocsAndPos.docID(), memDocsAndPos.nextDoc());
assertEquals(iwDocsAndPos.freq(), memDocsAndPos.freq());
for (int i = 0; i < iwDocsAndPos.freq(); i++) {
assertEquals("term: " + iwTermsIter.term().utf8ToString(), iwDocsAndPos.nextPosition(), memDocsAndPos.nextPosition());
if (offsets) {
assertEquals(iwDocsAndPos.startOffset(), memDocsAndPos.startOffset());