// 3. execute the algorithm (required in every "logic" test)
Benchmark benchmark = execBenchmark(algLines);
IndexReader r = IndexReader.open(benchmark.getRunData().getDirectory(), true);
StringIndex idx = FieldCache.DEFAULT.getStringIndex(r, "country");
final int maxDoc = r.maxDoc();
assertEquals(10000, maxDoc);
for(int i=0;i<10000;i++) {
assertNotNull("doc " + i + " has null country", idx.lookup[idx.order[i]]);
}