@Test
public void testAnalyseInheritanceModesSingleSampleMultiAllelicTwoPassedVariantHetShouldBeCompatibleWithAD() {

    Gene gene = newGene();
    List<Allele> alleles = buildAlleles("A", "T", "C");
    Genotype proband = buildPhasedSampleGenotype("Cain", alleles.get(1), alleles.get(2));
    assertThat(proband.getType(), equalTo(GenotypeType.HET));
    VariantContext variantContext = buildVariantContext(1, 12345, alleles, proband);
    System.out.println("Built variant context " + variantContext);
    gene.addVariant(filteredVariant(1, 12345, "A", "T", FilterResult.pass(FilterType.FREQUENCY_FILTER), variantContext));
    gene.addVariant(filteredVariant(1, 12345, "A", "C", FilterResult.pass(FilterType.FREQUENCY_FILTER), variantContext));
    Pedigree pedigree = Pedigree.justProband("Cain");
    InheritanceModeAnalyser instance = newInstanceForModes(pedigree, ModeOfInheritance.AUTOSOMAL_DOMINANT);
    instance.analyseInheritanceModes(gene);
    assertThat(gene.isCompatibleWith(ModeOfInheritance.ANY), is(true));
    assertThat(gene.isCompatibleWith(ModeOfInheritance.AUTOSOMAL_DOMINANT), is(true));
    assertThat(gene.isCompatibleWith(ModeOfInheritance.AUTOSOMAL_RECESSIVE), is(false));
    gene.getPassedVariantEvaluations()
            .forEach(variant -> {
                System.out.println(variantString(variant));
                assertThat(variant.getCompatibleInheritanceModes(), hasItem(ModeOfInheritance.AUTOSOMAL_DOMINANT));
            });
}