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