@Test
public void writeToStringPassOnlyAnyModeOfInheritance() throws Exception {

    Analysis analysis = this.analysisBuilder.analysisMode(AnalysisMode.PASS_ONLY).build();
    AnalysisResults analysisResults = this.analysisResultsBuilder.build();
    OutputSettings outputSettings = this.settingsBuilder.outputContributingVariantsOnly(true).build();
    JsonResultsWriter instance = new JsonResultsWriter();
    String result = instance.writeString(ModeOfInheritance.ANY, analysis, analysisResults, outputSettings);
    String expected = readFromFile("src/test/resources/writers/contributing_only_any_moi_test.json");
    JSONAssert.assertEquals(expected, result, true);
}