@Test(expected = IllegalArgumentException.class)
public void testNonExistingIdField() throws Exception {

  configuration = new LuceneStorageConfiguration(getConfiguration(), asList(getIndexPath1()), new Path("output"), "nonExistingId", asList(FIELD)).serialize();
  SegmentCommitInfo segmentInfo = segmentInfos.iterator().next();
  LuceneSegmentInputSplit inputSplit = new LuceneSegmentInputSplit(getIndexPath1(), segmentInfo.info.name, segmentInfo.sizeInBytes());
  TaskAttemptContext context = getTaskAttemptContext(configuration, new TaskAttemptID());
  recordReader.initialize(inputSplit, context);
}