QueryPhenotypeMatch { public double getBestAvgScore() { return theoreticalBestAvgScore; } 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 testGetBestAverageScore() { double expected = (bestToeMatch.getScore() + perfectNoseMatch.getScore()) / 2d; assertThat(instance.getBestAvgScore(), equalTo(expected)); }
@Test public void testGetBestAverageScoreNoMatches() { QueryPhenotypeMatch noMatchesInstance = new QueryPhenotypeMatch(Organism.HUMAN, Collections.emptyMap()); assertThat(noMatchesInstance.getBestAvgScore(), equalTo(0d)); }