public void createStepListenerAndFactory() throws IOException {
MockitoAnnotations.initMocks(this);
outputDirectory = temporaryFolder.newFolder("thucydides");
environmentVariables = new MockEnvironmentVariables();
configuration = new SystemPropertiesConfiguration(environmentVariables);
stepFactory = new StepFactory();
stepListener = new BaseStepListener(null, outputDirectory, configuration);
StepEventBus.getEventBus().clear();