@Test
public void testArrayFile() throws Exception {

  Configuration conf = new Configuration();
  FileSystem fs = FileSystem.getLocal(conf);
  RandomDatum[] data = generate(10000);
  writeTest(fs, data, TEST_FILE);
  readTest(fs, data, TEST_FILE, conf);
}