}
@Test
public void the_listener_should_record_issue_tags_for_multiple_scenarios_in_a_story() {
FlatScenarioSteps steps = stepFactory.getStepLibraryFor(FlatScenarioSteps.class);
StepEventBus.getEventBus().testSuiteStarted(MyTestCase.class);
StepEventBus.getEventBus().addIssuesToCurrentStory(Lists.newArrayList("issue-123"));
StepEventBus.getEventBus().testStarted("app_should_work", MyTestCase.class);
StepEventBus.getEventBus().addIssuesToCurrentTest(Lists.newArrayList("issue-456"));
StepEventBus.getEventBus().addTagsToCurrentStory(Lists.newArrayList(TestTag.withName("iteration-1").andType("iteration")));
StepEventBus.getEventBus().addTagsToCurrentTest(Lists.newArrayList(TestTag.withName("fast").andType("speed")));
steps.step_one();
steps.step_two();
StepEventBus.getEventBus().testFinished();
StepEventBus.getEventBus().testStarted("app_should_work_again", MyTestCase.class);
StepEventBus.getEventBus().addIssuesToCurrentTest(Lists.newArrayList("issue-789"));
steps.step_one();
steps.step_two();
StepEventBus.getEventBus().testFinished();
StepEventBus.getEventBus().testSuiteFinished();
List<TestOutcome> results = stepListener.getTestOutcomes();