@Test
public void prioritizeGenesRECESSIVEModeIsCompatible() {

    //ROR2 has two associated conditions, one recessive, the other dominant.
    // We're going to simulate this matching the recessive one.
    Gene gene = new Gene("ROR2", 4920);
    gene.setCompatibleInheritanceModes(EnumSet.of(ModeOfInheritance.AUTOSOMAL_RECESSIVE));
    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, 1.0);
    scores.put(ModeOfInheritance.X_RECESSIVE, 0.5);
    scores.put(ModeOfInheritance.X_DOMINANT, 0.5);
    scores.put(ModeOfInheritance.MITOCHONDRIAL, 0.5);
    OmimPriorityResult expected = omimResultForGene(gene, 1.0, scores);
    assertThat(result, equalTo(expected));
}