@Test
public void omimPrioritisedOnlyGeneWithKnownDiseaseCurrentInheritanceMatchesOneDiseaseInheritance() {

    Gene gene = newGeneCompatibleWith(ModeOfInheritance.AUTOSOMAL_DOMINANT);
    InheritanceMode[] inheritanceModes = {InheritanceMode.AUTOSOMAL_RECESSIVE, InheritanceMode.AUTOSOMAL_DOMINANT};
    Map<ModeOfInheritance, Double> scores = new EnumMap<>(ModeOfInheritance.class);
    scores.put(ModeOfInheritance.AUTOSOMAL_DOMINANT, 1.0);
    scores.put(ModeOfInheritance.AUTOSOMAL_RECESSIVE, 1.0);
    scores.put(ModeOfInheritance.X_RECESSIVE, 0.5);
    scores.put(ModeOfInheritance.X_DOMINANT, 0.5);
    scores.put(ModeOfInheritance.MITOCHONDRIAL, 0.5);
    addOmimResultToGene(gene, scores, inheritanceModes);
    double score = instance.calculateGenePriorityScoreForMode(gene, ModeOfInheritance.AUTOSOMAL_DOMINANT);
    assertThat(score, equalTo(0.0));
}