@Test
public void createsTheCorrectInstance() throws Exception {

    Map<String, String> testCaseStep = new HashMap<>();
    WebDriverActionConfiguration webDriverActionConfiguration = mock(WebDriverActionConfiguration.class);
    StepAndWebDriverActionConfiguration expected = mock(StepAndWebDriverActionConfiguration.class);
    int index = 0;
    PowerMockito.whenNew(StepAndWebDriverActionConfiguration.class)
            .withArguments(testCaseStep, index, webDriverActionConfiguration)
            .thenReturn(expected);
    StepAndWebDriverActionConfigurationSupplier stepAndWebDriverActionConfigurationSupplier =
            new StepAndWebDriverActionConfigurationSupplier();
    StepAndWebDriverActionConfiguration actual = stepAndWebDriverActionConfigurationSupplier.get(testCaseStep, index, webDriverActionConfiguration);
    assertEquals(expected, actual);
}