InheritanceFilter implements GeneFilter { public Set<ModeOfInheritance> getCompatibleModes() { return 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 testGetModeOfInheritance() { Set<ModeOfInheritance> desiredInheritanceMode = EnumSet.of(ModeOfInheritance.AUTOSOMAL_DOMINANT); InheritanceFilter instance = new InheritanceFilter(desiredInheritanceMode); assertThat(instance.getCompatibleModes(), equalTo(desiredInheritanceMode)); }