String msg = index[ i ] + ":" + term;
IndexIterator indexIterator = indexReader.documents( term );
ObjectArrayList<int[]> list = termMap[ i ].get( term );
int k = 0;
while ( indexIterator.hasNext() ) {
assertEquals( msg, list.get( k )[ 0 ], indexIterator.nextDocument() ); // Document
// pointer
if ( index[ i ].hasCounts ) assertEquals( msg, list.get( k ).length - 1, indexIterator.count() ); // Count
if ( index[ i ].hasPositions ) {
final int[] position = indexIterator.positionArray();
for ( int p = 0; p < indexIterator.count(); p++ )