//System.out.println(input);
TestXmlConfigurationBuilder configBuilder =
new TestXmlConfigurationBuilder(input);
MarinerConfiguration actualConfig = configBuilder.buildConfiguration();
assertNotNull(actualConfig);
final WebDriverConfiguration config =
actualConfig.getPipelineConfiguration().getWebDriverConfiguration();
if (mock != null) {
assertNotNull("Actual configuration should not be null",
config);
Map expectedMap = (Map)getPrivateObject(mock, "proxies");
Map actualMap = (Map)getPrivateObject(
actualConfig.getPipelineConfiguration().
getWebDriverConfiguration(),
"proxies");
String result = verifyContentsOfMap(expectedMap, actualMap);
if (result != null) {
fail(result);
}
expectedMap = (Map)getPrivateObject(mock, "scriptModules");
actualMap = (Map)getPrivateObject(
actualConfig.getPipelineConfiguration().
getWebDriverConfiguration(),
"scriptModules");
result = verifyContentsOfMap(expectedMap, actualMap);
if (result != null) {
fail(result);