QueryPhenotypeMatch { public double getMaxMatchScore() { return theoreticalMaxMatchScore; } QueryPhenotypeMatch(Organism organism, Map<PhenotypeTerm, Set<PhenotypeMatch>> queryTermPhenotypeMatches); Organism getOrganism(); Map<PhenotypeTerm, Set<PhenotypeMatch>> getQueryTermPhenotypeMatches(); List<PhenotypeTerm> getQueryTerms(); Set<PhenotypeMatch> getBestPhenotypeMatches(); double getMaxMatchScore(); double getBestAvgScore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetTheoreticalMaxMatchScore() { assertThat(instance.getMaxMatchScore(), equalTo(4d)); }
@Test public void testGetTheoreticalMaxMatchScoreNoMatches() { QueryPhenotypeMatch noMatchesInstance = new QueryPhenotypeMatch(Organism.HUMAN, Collections.emptyMap()); assertThat(noMatchesInstance.getMaxMatchScore(), equalTo(0d)); }