@Test
public void testAnalyseInheritanceModesMultiSampleOnePassedVariantHetShouldBeCompatibleWithAD() {

    Gene gene = newGene();
    List<Allele> alleles = buildAlleles("A", "T");
    // build Genotype
    //HomVar 1/1 or 1|1 variants are a really likely candidate for recessive rare diseases
    Genotype proband = buildPhasedSampleGenotype("Cain", alleles.get(0), alleles.get(1));
    assertThat(proband.getType(), equalTo(GenotypeType.HET));
    Genotype mother = buildPhasedSampleGenotype("Eve", alleles.get(0), alleles.get(0));
    assertThat(mother.getType(), equalTo(GenotypeType.HOM_REF));
    Genotype father = buildPhasedSampleGenotype("Adam", alleles.get(0), alleles.get(0));
    assertThat(father.getType(), equalTo(GenotypeType.HOM_REF));
    VariantContext variantContext = buildVariantContext(1, 12345, alleles, proband, mother, father);
    System.out.println("Built variant context " + variantContext);
    gene.addVariant(filteredVariant(1, 12345, "A", "T", FilterResult.pass(FilterType.FREQUENCY_FILTER), variantContext));
    Individual probandIndividual = Individual.builder().id("Cain").fatherId("Adam").motherId("Eve").sex(Sex.MALE).status(Status.AFFECTED).build();
    Individual motherIndividual = Individual.builder().id("Eve").fatherId("").motherId("").sex(Sex.FEMALE).status(Status.UNAFFECTED).build();
    Individual fatherIndividual = Individual.builder().id("Adam").fatherId("").motherId("").sex(Sex.MALE).status(Status.UNAFFECTED).build();
    Pedigree pedigree = Pedigree.of(probandIndividual, motherIndividual, fatherIndividual);
    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 -> assertThat(variant.isCompatibleWith(ModeOfInheritance.AUTOSOMAL_DOMINANT), is(true)));
}