### Question:
InheritanceFilter implements GeneFilter { @Override public FilterType getFilterType() { return filterType; } 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; }### Answer:
@Test public void testGetFilterType() { InheritanceFilter instance = new InheritanceFilter(EnumSet.of(ModeOfInheritance.X_DOMINANT)); assertThat(instance.getFilterType(), equalTo(FilterType.INHERITANCE_FILTER)); }