TestUtils.writeData(writer, new String[] { DATA11 }, false);
Thread.sleep(3000);
TestUtils.writeData(writer, new String[] { DATA12 }, true);
Thread.sleep(3000);
TextSequenceFileReader reader1 = new TextSequenceFileReader(getConfiguration(), new Path(testDefaultPath, "0"), null);
List<String> splitData1 = TestUtils.readData(reader1);
TextSequenceFileReader reader2 = new TextSequenceFileReader(getConfiguration(), new Path(testDefaultPath, "1"), null);
List<String> splitData2 = TestUtils.readData(reader2);
TextSequenceFileReader reader3 = new TextSequenceFileReader(getConfiguration(), new Path(testDefaultPath, "2"), null);
List<String> splitData3 = TestUtils.readData(reader3);
assertThat(splitData1.size() + splitData2.size() + splitData3.size(), is(3));
}