@Test
public void testHashCode() {

    InheritanceFilter instance = new InheritanceFilter(EnumSet.of(ModeOfInheritance.X_DOMINANT));
    InheritanceFilter other = new InheritanceFilter(EnumSet.of(ModeOfInheritance.X_DOMINANT));
    assertThat(instance.hashCode(), equalTo(other.hashCode()));
}