GeneScore implements Comparable<GeneScore> { @Override public String toString() { return "GeneScore{" + "geneIdentifier=" + geneIdentifier + ", modeOfInheritance=" + modeOfInheritance + ", combinedScore=" + combinedScore + ", phenotypeScore=" + phenotypeScore + ", variantScore=" + variantScore + ", contributingVariants=" + contributingVariants + '}'; } private  GeneScore(Builder builder); GeneIdentifier getGeneIdentifier(); ModeOfInheritance getModeOfInheritance(); float getCombinedScore(); float getPhenotypeScore(); float getVariantScore(); List<VariantEvaluation> getContributingVariants(); boolean hasContributingVariants(); static GeneScore max(GeneScore s1, GeneScore s2); int compareTo(GeneScore anotherGeneScore); static int compare(GeneScore s1, GeneScore s2); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static GeneScore empty(); static Builder builder();  }
@Test public void testToString() { GeneScore instance = GeneScore.builder() .geneIdentifier(GeneIdentifier.builder().geneSymbol("TEST1").geneId("HGNC:12345").build()) .combinedScore(1f) .phenotypeScore(1f) .variantScore(1f) .modeOfInheritance(ModeOfInheritance.AUTOSOMAL_DOMINANT) .build(); System.out.println(instance); }