assertThat(deserializedConfig, is(config));
}
@Test
public void shouldCreateAndroidDriver() throws Exception {
AndroidDriver mockAndroidDriver = Mockito.mock(AndroidDriver.class);
whenNew(AndroidDriver.class).withParameterTypes(URL.class, DesiredCapabilities.class).withArguments(isA(URL.class), isA(DesiredCapabilities.class)).thenReturn(mockAndroidDriver);
final AndroidDriver browser = config.createBrowser();
assertThat(browser, is(mockAndroidDriver));
verifyNew(AndroidDriver.class, times(1)).withArguments(isA(URL.class), isA(DesiredCapabilities.class));
}