Factor implements Comparable<Factor> { public Set<OntologyTerm> getValueOntologyTerms() { return valueOntologyTerms; } Factor(String header, String value);  Factor(String header, String value, OntologyTerm... valueOntologyTerms); static String normalize(String header); static String convertToLowerCase(String type); String getHeader(); String getValue(); String getType(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); @Override int compareTo(@Nonnull Factor factor); static SortedSet<String> getValues(Set<Factor> factors); Set<OntologyTerm> getValueOntologyTerms();  }
@Test public void repeatedOntologyTermsAreUnique() { assertThat(subject.getValueOntologyTerms().size(), is(2)); assertThat(subject.getValueOntologyTerms(), containsInAnyOrder(ontologyTerm1, ontologyTerm2)); }