@Test
public void testWrite() throws Exception {

    Path tempFolder = Files.createTempDirectory("exomiser_test");
    String outPrefix = tempFolder.resolve("testWrite").toString();
    OutputSettings settings = OutputSettings.builder()
            .outputPrefix(outPrefix)
            .outputFormats(EnumSet.of(OutputFormat.TSV_GENE))
            .build();
    instance.writeFile(ModeOfInheritance.AUTOSOMAL_DOMINANT, analysis, analysisResults, settings);
    Path outputPath = tempFolder.resolve("testWrite_AD.genes.tsv");
    assertThat(outputPath.toFile().exists(), is(true));
    assertThat(outputPath.toFile().delete(), is(true));
    Files.delete(tempFolder);
}