@Test
public void testRunQuery() throws IOException {

  commitDocuments(getDirectory(getIndexPath1AsFile()), docs);
  LuceneStorageConfiguration lucene2SeqConf = new LuceneStorageConfiguration(configuration,
    asList(getIndexPath1()),
    seqFilesOutputPath,
    SingleFieldDocument.ID_FIELD,
    asList(SingleFieldDocument.FIELD));
  Query query = new TermQuery(new Term(lucene2SeqConf.getFields().get(0), "599"));
  lucene2SeqConf.setQuery(query);
  lucene2Seq.run(lucene2SeqConf);
  Iterator<Pair<Text, Text>> iterator = lucene2SeqConf.getSequenceFileIterator();
  assertTrue(iterator.hasNext());
  Pair<Text, Text> next = iterator.next();
  assertTrue(next.getSecond().toString().contains("599"));
  assertFalse(iterator.hasNext());
}