OmimPriorityResult extends AbstractPriorityResult { public List<Disease> getAssociatedDiseases() { return diseases; } OmimPriorityResult(int geneId, String geneSymbol, double score, List<Disease> diseases, Map<ModeOfInheritance, Double> scoresByMode); List<Disease> getAssociatedDiseases(); Map<ModeOfInheritance, Double> getScoresByMode(); double getScoreForMode(ModeOfInheritance modeOfInheritance); @Override double getScore(); @Override String getHTMLCode(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testAssociatedDiseases() { Disease disease = Disease.builder().diseaseId("OMIM:12345").diseaseName("OMIM disease name").diseaseType(Disease.DiseaseType.DISEASE).inheritanceModeCode("D").build(); List<Disease> diseases = Lists.newArrayList(disease); OmimPriorityResult instance = new OmimPriorityResult(1234, "GENE1", 1d, diseases, Collections.emptyMap()); assertThat(instance.getAssociatedDiseases(), equalTo(diseases)); }