InheritanceFilter implements GeneFilter { @Override public String toString() { return "InheritanceFilter{" + "compatibleModes=" + compatibleModes + '}'; } InheritanceFilter(ModeOfInheritance compatibleMode);  InheritanceFilter(ModeOfInheritance... compatibleModes);  InheritanceFilter(Set<ModeOfInheritance> compatibleModes); Set<ModeOfInheritance> getCompatibleModes(); @Override FilterResult runFilter(Gene gene); @Override FilterType getFilterType(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final Set<ModeOfInheritance> JUST_ANY; }
@Test public void testToString() { InheritanceFilter instance = new InheritanceFilter(EnumSet.of(ModeOfInheritance.AUTOSOMAL_RECESSIVE)); assertThat(instance.toString(), equalTo("InheritanceFilter{compatibleModes=[AUTOSOMAL_RECESSIVE]}")); }