Splitter splitter = new StaticLengthSplitter(getConfiguration(), 30l);
List<Split> inputSplits = splitter.getSplits(testDefaultPath);
assertNotNull(inputSplits);
assertThat(inputSplits.size(), is(3));
TextFileReader reader1 = new TextFileReader(getConfiguration(), testDefaultPath, Codecs.BZIP2.getCodecInfo(), inputSplits.get(0), null);
List<String> readData1 = TestUtils.readData(reader1);
assertNotNull(readData1);
TextFileReader reader2 = new TextFileReader(getConfiguration(), testDefaultPath, Codecs.BZIP2.getCodecInfo(), inputSplits.get(1), null);
List<String> readData2 = TestUtils.readData(reader2);
assertNotNull(readData2);
TextFileReader reader3 = new TextFileReader(getConfiguration(), testDefaultPath, Codecs.BZIP2.getCodecInfo(), inputSplits.get(2), null);
List<String> readData3 = TestUtils.readData(reader3);
assertNotNull(readData3);
assertThat(readData1.size()+readData2.size()+readData3.size(), is(30));
}