Meta meta = beforeAndAfterMeta();
MarkUnmatchedStepsAsPending collector = new MarkUnmatchedStepsAsPending();
UUIDExceptionWrapper failureOccurred = new UUIDExceptionWrapper();
ScenarioType scenarioType = ScenarioType.NORMAL;
List<Step> beforeSteps = collector.collectBeforeOrAfterScenarioSteps(asList((CandidateSteps) steps), meta,
Stage.BEFORE, scenarioType);
beforeSteps.get(0).doNotPerform(failureOccurred);
assertThat(steps.value, equalTo("before"));
assertThat(steps.exception, equalTo(failureOccurred));