GeneScore implements Comparable<GeneScore> { public List<VariantEvaluation> getContributingVariants() { return 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 getContributingVariants() { List<VariantEvaluation> contributingVariants = Arrays.asList( VariantEvaluation.builder(1, 12335, "T", "C").build(), VariantEvaluation.builder(1, 23446, "A", "T").build() ); GeneScore instance = GeneScore.builder() .contributingVariants(contributingVariants) .build(); assertThat(instance.getContributingVariants(), equalTo(contributingVariants)); }