public void initMocks() throws IOException {
MockitoAnnotations.initMocks(this);
environmentVariables = new MockEnvironmentVariables();
environmentVariables.setProperty("thucydides.logging","VERBOSE");
factory = new StepFactory(new Pages(driver));
consoleStepListener = new ConsoleStepListener();
consoleLoggingListener = new ConsoleLoggingListener(environmentVariables);
baseStepListener = new BaseStepListener(temp.newFolder());
StepEventBus.getEventBus().clear();