AnalysisResults { @Override public int hashCode() { return Objects.hash(probandSampleName, sampleNames, variantEvaluations, genes); } AnalysisResults(Builder builder); String getProbandSampleName(); List<String> getSampleNames(); List<Gene> getGenes(); List<VariantEvaluation> getVariantEvaluations(); @JsonIgnore List<GeneScore> getGeneScores(); @JsonIgnore List<GeneScore> getGeneScoresForMode(ModeOfInheritance modeOfInheritance); @JsonIgnore List<VariantEvaluation> getContributingVariants(); @JsonIgnore List<VariantEvaluation> getContributingVariantsForMode(ModeOfInheritance modeOfInheritance); @JsonIgnore List<VariantEvaluation> getUnAnnotatedVariantEvaluations(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); static Builder builder();  }
@Test public void testHashCode() { AnalysisResults instance = AnalysisResults.builder().build(); AnalysisResults other = AnalysisResults.builder().build(); assertThat(instance.hashCode(), equalTo(other.hashCode())); }