@Test
public void writeToFileOutputFullAnyModeOfInheritancePassOnlyVariants() throws IOException {

    Analysis analysis = this.analysisBuilder.analysisMode(AnalysisMode.FULL).build();
    AnalysisResults analysisResults = this.analysisResultsBuilder.build();
    Path outPath = Files.createTempFile("exomiser_test", "");
    OutputSettings outputSettings = settingsBuilder.outputPrefix(outPath + "testWrite").build();
    JsonResultsWriter instance = new JsonResultsWriter();
    instance.writeFile(ModeOfInheritance.ANY, analysis, analysisResults, outputSettings);
    Path anyOutputPath = Paths.get(outPath + "testWrite.json");
    assertThat(anyOutputPath.toFile().exists(), is(true));
    assertThat(anyOutputPath.toFile().delete(), is(true));
    instance.writeFile(ModeOfInheritance.AUTOSOMAL_RECESSIVE, analysis, analysisResults, outputSettings);
    Path arOutputPath = Paths.get(outPath + "testWrite_AR.json");
    assertThat(arOutputPath.toFile().exists(), is(true));
    assertThat(arOutputPath.toFile().delete(), is(true));
    instance.writeFile(ModeOfInheritance.AUTOSOMAL_DOMINANT, analysis, analysisResults, outputSettings);
    Path adOutputPath = Paths.get(outPath + "testWrite_AD.json");
    assertThat(adOutputPath.toFile().exists(), is(true));
    assertThat(adOutputPath.toFile().delete(), is(true));
    Files.delete(outPath);
}