@Test
public void validatorReportsMissingSubstepsInDefinition() {

    File substepsFile = createSubstepsFile("error.substeps").getAbsoluteFile();
    final PatternMap<ParentStep> substeps = substepsFileParser.loadSubSteps(substepsFile);
    final StepValidator stepValidator = createStepValidatorWithSubsteps("simple.substeps", mock);
    for (final ParentStep substep : substeps.values()) {
        stepValidator.validateSubstep(substep, mock);
    }
    verify(mock).reportFeatureError(eq(substepsFile), eq("SingleWord"), eq(5), eq(101), eq("Step \"SingleWord\" is not defined"));
    verify(mock).reportFeatureError(eq(substepsFile), eq("Test_Then something else has happened"), eq(6), anyInt(), any());
    verify(mock).reportFeatureError(eq(substepsFile), eq("Test_Then something has happened"), eq(9), anyInt(), any());
}