@Override
 public void testFinished(Description description) throws Exception {
   if (isItSingleScenario(description)) {
     ScenarioModel namedScenario = namedScenario(description);
     story.addScenario(namedScenario);
   }
 }
 private void setAllFailedScenariosToStatusFailed(Result result) {
   for (Failure failure : result.getFailures())
     story
         .scenarioDescribedBy(failure.getDescription())
         .withStatus(ScenarioStatus.FAILED.withDetails(failure.getException()));
 }
 private void setAllPassedAndPendingScenariosToProperStatus() {
   for (ScenarioModel scenario : story.scenarios()) {
     setStatusToPassedIfNotFailed(scenario);
     setStatusToPendingIfAnnotatedAsPending(scenario);
   }
 }