@Test
public void testCheckTwoInheritanceModeDependentStepsAndTwoVariantFiltersInIllegalOrderIsReordered() {

    analysisSteps.add(OMIM_PRIORITISER);
    analysisSteps.add(FREQUENCY_FILTER);
    analysisSteps.add(KNOWN_VARIANT_FILTER);
    analysisSteps.add(INHERITANCE_FILTER);
    expectedSteps.add(FREQUENCY_FILTER);
    expectedSteps.add(KNOWN_VARIANT_FILTER);
    expectedSteps.add(INHERITANCE_FILTER);
    expectedSteps.add(OMIM_PRIORITISER);
    assertThat(instance.check(analysisSteps), equalTo(expectedSteps));
}