@Test
public void testRun() throws IOException {

  //Two commit points, each in two diff. Directories
  commitDocuments(getDirectory(getIndexPath1AsFile()), docs.subList(0, 500));
  commitDocuments(getDirectory(getIndexPath1AsFile()), docs.subList(1000, 1500));
  commitDocuments(getDirectory(getIndexPath2AsFile()), docs.subList(500, 1000));
  commitDocuments(getDirectory(getIndexPath2AsFile()), docs.subList(1500, 2000));
  commitDocuments(getDirectory(getIndexPath1AsFile()), misshapenDocs);
  lucene2seq.run(lucene2SeqConf);
  Iterator<Pair<Text, Text>> iterator = lucene2SeqConf.getSequenceFileIterator();
  Map<String, Text> map = Maps.newHashMap();
  while (iterator.hasNext()) {
    Pair<Text, Text> next = iterator.next();
    map.put(next.getFirst().toString(), next.getSecond());
  }
  assertEquals(docs.size() + misshapenDocs.size(), map.size());
  for (TestDocument doc : docs) {
    Text value = map.get(doc.getId());
    assertNotNull(value);
    assertEquals(value.toString(), doc.getField());
  }
  for (TestDocument doc : misshapenDocs) {
    Text value = map.get(doc.getId());
    assertNotNull(value);
    assertEquals(value.toString(), doc.getField());
  }
}