hitRatio = 0.5f;
SortedKeyValueIterator<Key,Value> source = createIteratorStack(NUM_ROWS, NUM_DOCIDS, columnFamilies, otherColumnFamilies, docs, negatedColumns);
Map<String,String> options = new HashMap<String,String>();
options.put(IntersectingIterator.columnFamiliesOptionName, IntersectingIterator.encodeColumns(columnFamilies));
options.put(IntersectingIterator.notFlagOptionName, IntersectingIterator.encodeBooleans(notFlags));
IntersectingIterator iter = new IntersectingIterator();
iter.init(source, options, env);
iter.seek(new Range(), EMPTY_COL_FAMS, false);
int hitCount = 0;
while (iter.hasTop()) {
hitCount++;
Key k = iter.getTopKey();
assertTrue(docs.contains(k.getColumnQualifier()));
iter.next();
}
assertTrue(hitCount == docs.size());
cleanup();
}