@Test
public void testWriteFailTargetVariant() {

    EnumSet<ModeOfInheritance> autosomalDominantCompatible = EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT);
    fgfr2PassMissenseVariant.addFilterResult(FAIL_TARGET_RESULT);
    fgfr2PassMissenseVariant.setCompatibleInheritanceModes(autosomalDominantCompatible);
    fgfr2Gene.setCompatibleInheritanceModes(autosomalDominantCompatible);
    AnalysisResults analysisResults = buildAnalysisResults(fgfr2Gene);
    String vcfAD = instance.writeString(ModeOfInheritance.AUTOSOMAL_DOMINANT, analysis, analysisResults, settings);
    assertThat(vcfAD, equalTo(failedFgfr2VariantWithFilterField("var-effect")));
    String vcfAR = instance.writeString(ModeOfInheritance.AUTOSOMAL_RECESSIVE, analysis, analysisResults, settings);
    assertThat(vcfAR, equalTo(failedFgfr2VariantWithFilterField("inheritance;var-effect")));
}