private void assertSegmentContainsOneDoc(String segmentName) throws IOException {
LuceneSegmentInputSplit inputSplit = new LuceneSegmentInputSplit(indexPath1, segmentName, 1000);
SegmentInfoPerCommit segment = inputSplit.getSegment(configuration);
SegmentReader segmentReader = new SegmentReader(segment, 1, IOContext.READ);//SegmentReader.get(true, segment, 1);
assertEquals(segmentName, segment.info.name);
assertEquals(1, segmentReader.numDocs());
}
}