private List<BeforeOrAfterStep> stepsHaving(Stage stage, Class<? extends AfterScenario> annotationClass,
Outcome outcome) {
List<BeforeOrAfterStep> steps = new ArrayList<BeforeOrAfterStep>();
for (Method method : annotatatedMethods(annotationClass)) {
AfterScenario annotation = method.getAnnotation(annotationClass);
if (outcome.equals(annotation.uponOutcome())) {
steps.add(createBeforeOrAfterStep(stage, method, outcome));
}
}
return steps;
}