@Test
public void testRunNumericField() throws IOException {

  LuceneStorageConfiguration lucene2SeqConf = new LuceneStorageConfiguration(configuration,
    asList(getIndexPath1()),
    seqFilesOutputPath,
    SingleFieldDocument.ID_FIELD,
    asList(NumericFieldDocument.FIELD, NumericFieldDocument.NUMERIC_FIELD));
  NumericFieldDocument doc1 = new NumericFieldDocument("1", "This is field 1", 100);
  NumericFieldDocument doc2 = new NumericFieldDocument("2", "This is field 2", 200);
  NumericFieldDocument doc3 = new NumericFieldDocument("3", "This is field 3", 300);
  commitDocuments(getDirectory(getIndexPath1AsFile()), doc1, doc2, doc3);
  lucene2Seq.run(lucene2SeqConf);
  Iterator<Pair<Text, Text>> iterator = lucene2SeqConf.getSequenceFileIterator();
  assertNumericFieldEquals(doc1, iterator.next());
  assertNumericFieldEquals(doc2, iterator.next());
  assertNumericFieldEquals(doc3, iterator.next());
}