@Test
public void testMultiFileCompletedWriteCache1()
{

  EvenOddHDFSExactlyOnceWriter writer = new EvenOddHDFSExactlyOnceWriter();
  writer.setMaxOpenFiles(1);
  testMultiFileCompletedWriteHelper(writer);
  String evenFileName = testMeta.getDir() + File.separator + EVEN_FILE;
  String correctContents = "0\n" + "2\n" + "4\n" + "6\n";
  checkOutput(-1, evenFileName, correctContents);
  String oddFileName = testMeta.getDir() + File.separator + ODD_FILE;
  correctContents = "1\n" + "3\n" + "5\n" + "7\n";
  checkOutput(-1, oddFileName, correctContents);
}