private void setupFailureListener() throws Exception {
failureTestListener = JUnitStepListener.withOutputDirectory(outputDirectory)
.and().withPageFactory(pages)
.and().withTestClass(ScenarioWithSomeFailingTests.class)
.and().build();
stepFactory = new StepFactory(pages);
failureTestListener.testRunStarted(Description.createSuiteDescription(ScenarioWithSomeFailingTests.class));
failureTestListener.testStarted(Description.createTestDescription(ScenarioWithSomeFailingTests.class,"app_should_work"));
}