public SequenceFile.Writer createWriter(File file) throws IOException {
    return createWriter(toPath(file));
  }
@Test
  public void testCreateEmptyFile() throws Throwable {

    final File file = getEntryFile();

    entryFileIO.createWriter(file).close();

    // now use the iterator to access it.
    List<FileEntry> files = new ArrayList<>();
    Assertions.assertThat(foreach(iterateOverEntryFile(), files::add))
        .describedAs("Count of iterations over entries in an entry file with no entries")
        .isEqualTo(0);
  }