@Test
public void testThatSpecifiedOutputFormatDoesNotOverwriteGivenOutputPrefixFileExtension() {

    OutputFormat testedFormat = OutputFormat.VCF;
    String outputPrefix = "/user/jules/exomes/analysis/slartibartfast.xml";
    OutputSettings settings = OutputSettings.builder().outputPrefix(outputPrefix).build();
    String expResult = String.format("%s_XD.%s", outputPrefix, testedFormat.getFileExtension());
    String result = ResultsWriterUtils.makeOutputFilename(vcfPath, settings.getOutputPrefix(), testedFormat, ModeOfInheritance.X_DOMINANT);
    assertThat(result, equalTo(expResult));
}