assertThat(deserializedConfig, is(config));
}
@Test
public void shouldCreateFirefox() throws Exception {
FirefoxDriver mockFirefoxDriver = Mockito.mock(FirefoxDriver.class);
whenNew(FirefoxDriver.class)
.withParameterTypes(FirefoxBinary.class, FirefoxProfile.class, Capabilities.class)
.withArguments(isA(FirefoxBinary.class), isA(FirefoxProfile.class), isA(Capabilities.class))
.thenReturn(mockFirefoxDriver);
final FirefoxDriver browser = config.createBrowser();
assertThat(browser, is(mockFirefoxDriver));
verifyNew(FirefoxDriver.class, times(1)).withArguments(isA(FirefoxBinary.class), isA(FirefoxProfile.class), isA(Capabilities.class));
}