assertEquals(docs.size(),1);
}
@Test
public void testFetchDocumentsStrictFamilyOrder() throws CorruptIndexException, LockObtainFailedException, IOException{
Selector selector = new Selector();
List<String> columnFamiliesToFetch = new ArrayList<String>();
columnFamiliesToFetch.add("f1");
columnFamiliesToFetch.add("f2");
selector.setColumnFamiliesToFetch(columnFamiliesToFetch);
ResetableDocumentStoredFieldVisitor resetableDocumentStoredFieldVisitor = new ResetableDocumentStoredFieldVisitor();
List<Document> docs = BlurUtil.fetchDocuments(getReaderWithDocsHavingFamily(), new Term("a","b"), resetableDocumentStoredFieldVisitor, selector, 10000000, "test-context");
assertEquals(docs.size(),2);
assertEquals(docs.get(0).getField("family").stringValue(),"f1");