assertEquals( index[ i ].toString(), postings, index[ i ].numberOfPostings );
assertEquals( occurrences, index[ i ].numberOfOccurrences );
IndexReader indexReader = index[ i ].getReader();
for ( MutableString term : new ObjectRBTreeSet<MutableString>( termMap[ i ].keySet() ).toArray( new MutableString[ termMap[ i ].size() ] ) ) {
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