@Test
public void prioritizeGenesInheritanceModeIsNotCompatible() {

    //FREM2 has only one associated condition (recessive). We're going to simulate this not matching.
    Gene gene = new Gene("FREM2", 341640);
    gene.setCompatibleInheritanceModes(EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT));
    List<Gene> genes = Lists.newArrayList(gene);
    instance.prioritizeGenes(Collections.emptyList(), genes);
    OmimPriorityResult result = (OmimPriorityResult) gene.getPriorityResult(PriorityType.OMIM_PRIORITY);
    Map<ModeOfInheritance, Double> scores = new EnumMap<>(ModeOfInheritance.class);
    scores.put(ModeOfInheritance.AUTOSOMAL_DOMINANT, 0.5);
    scores.put(ModeOfInheritance.AUTOSOMAL_RECESSIVE, 0.5);
    scores.put(ModeOfInheritance.X_RECESSIVE, 0.5);
    scores.put(ModeOfInheritance.X_DOMINANT, 0.5);
    scores.put(ModeOfInheritance.MITOCHONDRIAL, 0.5);
    OmimPriorityResult expected = omimResultForGene(gene, 0.5, scores);
    assertThat(result, equalTo(expected));
}