@Test
@ExtendWith(TempDirectory.class)
public void parse(@TempDir Path tempDir) throws Exception {

    Path inputFile = Paths.get("src/test/resources/genome/fantom_enhancers.bed");
    Path outputFile = tempDir.resolve("test_fantom_enhancers.pg");
    Path expectedOutputFile = Paths.get("src/test/resources/genome/fantom_enhancers.pg");
    FantomEnhancerParser instance = new FantomEnhancerParser(inputFile, outputFile);
    instance.parse();
    List<String> expected = Files.readAllLines(expectedOutputFile);
    List<String> actual = Files.readAllLines(outputFile);
    assertThat(actual, equalTo(expected));
}