PathogenicityData { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PathogenicityData that = (PathogenicityData) o; return Objects.equals(clinVarData, that.clinVarData) && Objects.equals(pathogenicityScores, that.pathogenicityScores); } private  PathogenicityData(ClinVarData clinVarData, Collection<PathogenicityScore> pathScores); static PathogenicityData of(PathogenicityScore pathScore); static PathogenicityData of(PathogenicityScore... pathScore); static PathogenicityData of(Collection<PathogenicityScore> pathScores); static PathogenicityData of(ClinVarData clinVarData, PathogenicityScore pathScore); static PathogenicityData of(ClinVarData clinVarData, PathogenicityScore... pathScore); static PathogenicityData of(ClinVarData clinVarData, Collection<PathogenicityScore> pathScores); static PathogenicityData empty(); ClinVarData getClinVarData(); boolean hasClinVarData(); List<PathogenicityScore> getPredictedPathogenicityScores(); @JsonIgnore boolean isEmpty(); @JsonIgnore boolean hasPredictedScore(); boolean hasPredictedScore(PathogenicitySource pathogenicitySource); PathogenicityScore getPredictedScore(PathogenicitySource pathogenicitySource); float getScore(); @Nullable PathogenicityScore getMostPathogenicScore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { PathogenicityData instance = PathogenicityData.of(MTASTER_FAIL); PathogenicityData otherInstance = PathogenicityData.of(MTASTER_FAIL); assertThat(instance.equals(otherInstance), is(true)); }