CrossSpeciesPhenotypeMatcher implements PhenotypeMatcher { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CrossSpeciesPhenotypeMatcher that = (CrossSpeciesPhenotypeMatcher) o; return Objects.equals(queryPhenotypeMatch, that.queryPhenotypeMatch); } private  CrossSpeciesPhenotypeMatcher(QueryPhenotypeMatch queryPhenotypeMatch); @Override Organism getOrganism(); @Override List<PhenotypeTerm> getQueryTerms(); @Override Map<PhenotypeTerm, Set<PhenotypeMatch>> getTermPhenotypeMatches(); @Override Set<PhenotypeMatch> getBestPhenotypeMatches(); @Override QueryPhenotypeMatch getQueryPhenotypeMatch(); @Override PhenodigmMatchRawScore matchPhenotypeIds(List<String> modelPhenotypes); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { CrossSpeciesPhenotypeMatcher emptyHumanOne = CrossSpeciesPhenotypeMatcher.of(Organism.HUMAN, Collections.emptyMap()); CrossSpeciesPhenotypeMatcher emptyMouseOne = CrossSpeciesPhenotypeMatcher.of(Organism.MOUSE, Collections.emptyMap()); CrossSpeciesPhenotypeMatcher emptyHumanTwo = CrossSpeciesPhenotypeMatcher.of(Organism.HUMAN, Collections.emptyMap()); assertThat(emptyHumanOne, equalTo(emptyHumanTwo)); assertThat(emptyHumanOne, not(equalTo(emptyMouseOne))); }