@Test
public void testAnalyseInheritanceModesSingleSampleOnePassedVariantHomVar() {

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