PhivePriorityResult extends AbstractPriorityResult { @Override public String toString() { return "PhivePriorityResult{" + "geneId=" + geneId + ", geneSymbol='" + geneSymbol + '\'' + ", score=" + score + ", geneModelPhenotypeMatch=" + geneModelPhenotypeMatch + "}"; } PhivePriorityResult(int geneId, String geneSymbol, double score, GeneModelPhenotypeMatch geneModelPhenotypeMatch); GeneModelPhenotypeMatch getGeneModelPhenotypeMatch(); @JsonIgnore @Override String getHTMLCode(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() throws Exception { PhivePriorityResult result = new PhivePriorityResult(2263, "FGFR2", 0.827862024307251, geneModelPhenotypeMatch); assertThat(result.toString(), startsWith("PhivePriorityResult{geneId=2263, geneSymbol='FGFR2', score=0.827862024307251")); }