TextFileWriter writer = new TextFileWriter(getConfiguration(), testDefaultPath, Codecs.BZIP2.getCodecInfo());
TestUtils.writeData(writer, DATA09ARRAY, false);
TestUtils.writeData(writer, DATA09ARRAY, false);
TestUtils.writeData(writer, DATA09ARRAY, true);
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);