@Test
public void testWriteToFileOutputsAllModesOfinheritanceForEachFormatWhenInheritanceModeIsUndefined() throws Exception {

    String outputPrefix = tempFile.toString();
    OutputSettings settings = OutputSettings.builder()
            .outputPrefix(outputPrefix)
            .outputFormats(EnumSet.of(OutputFormat.TSV_GENE, OutputFormat.TSV_VARIANT, OutputFormat.HTML, OutputFormat.VCF))
            .build();
    Analysis analysis = Analysis.builder()
            .vcfPath(Paths.get("src/test/resources/smallTest.vcf"))
            .inheritanceModeOptions(InheritanceModeOptions.empty())
            .build();
    AnalysisResultsWriter.writeToFile(analysis, newAnalysisResults(), settings);
    for (OutputFormat outputFormat : Arrays.asList(OutputFormat.HTML, OutputFormat.TSV_GENE, OutputFormat.TSV_VARIANT, OutputFormat.VCF)) {
        Path outputPath = Paths.get(String.format("%s.%s", outputPrefix, outputFormat.getFileExtension()));
        assertThat(outputPath.toFile().exists(), is(true));
        assertThat(outputPath.toFile().delete(), is(true));
    }
}