@Test
public void testContributingVariantIsIndicated() {

    OutputSettings settings = settingsBuilder.build();
    Gene fgfr2 = TestFactory.newGeneFGFR2();
    fgfr2.setCompatibleInheritanceModes(EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT));
    VariantEvaluation contributing = makeContributingVariant();
    contributing.setCompatibleInheritanceModes(EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT));
    contributing.setContributesToGeneScoreUnderMode(ModeOfInheritance.AUTOSOMAL_DOMINANT);
    fgfr2.addVariant(contributing);
    AnalysisResults results = AnalysisResults.builder()
            .genes(Collections.singletonList(fgfr2))
            .build();
    String outString = instance.writeString(ModeOfInheritance.AUTOSOMAL_DOMINANT, analysis, results, settings);
    String expected = HEADER +
            CONTRIBUTING_VARIANT_LINE;
    assertThat(outString, equalTo(expected));
}