givenBeforeOrAfterScenarioStep(Stage.BEFORE, scenarioType, collector, mySteps);
givenBeforeOrAfterScenarioStep(Stage.AFTER, scenarioType, collector, mySteps);
}
private void givenBeforeOrAfterScenarioStep(Stage stage, ScenarioType scenarioType, StepCollector collector, CandidateSteps mySteps) {
Step step = mockSuccessfulStep(stepNameFor(stage, scenarioType));
when(collector.collectBeforeOrAfterScenarioSteps(eq(asList(mySteps)), Matchers.<Meta>any(), eq(stage), eq(scenarioType))).thenReturn(asList(step));
}