serverMock.addTransaction(expectedRequest, responseContent);
XMLPipelineConfiguration config = createPipelineConfiguration();
WebDriverConfiguration webdConf = retrieveWebdConfiguration(config);
webdConf.setResponseContainsPipelineMarkup(true);
XMLPipelineContext context =
pipelineFactory.createPipelineContext(config,
createRootEnvironmentInteraction());
WebDriverAccessor accessor = createWebDriverAccessor();
// register the parameters that this test requires with the
// WebDriverRequest
WebDriverRequest request = accessor.getRequest(context);
HTTPMessageEntities headers =
HTTPFactory.getDefaultInstance().
createHTTPMessageEntities();
Header header1 = new HeaderImpl("name");
header1.setValue("fred");
Header header2 = new HeaderImpl("request2");
header2.setValue("jane");
headers.add(header1);
headers.add(header2);
request.setHeaders(headers);
context.setProperty(WebDriverAccessor.class, accessor, false);
doInContextTest(context,
"InlineHeaderTestCase.input.xml",
"InlineHeaderTestCase.expected.xml");
}