@Test
public void executesStepsWithTheSuppliedBrowser() throws IOException, URISyntaxException {

    when(replayBrowserProvider.get()).thenReturn(replayBrowser);
    TestScenarioSteps steps = new TestScenarioSteps();
    when(stepsProvider.get()).thenReturn(steps);
    when(executionReport.getAutomationResult()).thenReturn(AutomationResult.SUCCESS);
    Process process = mock(Process.class);
    VirtualScreenProcessCreator virtualScreenProcessCreator = mock(VirtualScreenProcessCreator.class);
    Integer screenNumber = 1;
    when(virtualScreenProcessCreator.createXvfbProcess(screenNumber)).thenReturn(process);
    when(replayBrowser.replay(steps)).thenReturn(executionReport);
    ReplayCommand replayCommand = new ReplayCommand(replayBrowserProvider, stepsProvider,
            virtualScreenProcessCreator, screenNumber, measurementsFile, harFile);
    replayCommand.run();
    verify(replayBrowser).replay(steps);
}