assertEquals(0, segmentList.contents.get().length);
final File file = new File("testGetNearestOffset.test");
if (!file.exists()) {
file.createNewFile();
}
final Segment segment1 = new Segment(0, file);
segment1.fileMessageSet.setHighWaterMarker(1024);
final Segment segment2 = new Segment(1024, file);
segment2.fileMessageSet.setHighWaterMarker(1024);
final Segment segment3 = new Segment(2048, file);
segment3.fileMessageSet.setHighWaterMarker(1024);
final Segment segment4 = new Segment(3072, file);
segment4.fileMessageSet.setHighWaterMarker(1024);
segmentList.append(segment1);
segmentList.append(segment2);
segmentList.append(segment3);