pageContext = new TestMarinerPageContext();
requestContext = new TestMarinerRequestContext();
// Register a dummy EnvironmentContext against the request context
ContextInternals.setEnvironmentContext(requestContext,
new TestEnvironmentContext());
VolantisProtocol protocol = new VolantisProtocolStub();
pageContext.setProtocol(protocol);
pageContext.setPageGenerationCache(new PageGenerationCache());
pageContext.setRequestURL(
new MarinerURL("http://server:8080/volantis/test.xdime"));
ContextInternals.setMarinerPageContext(requestContext, pageContext);
protocol.setMarinerPageContext(pageContext);
// Create the xfform form element surrounding the xfimplicit. This is
// required as XFImplicitElement.elementStart gets the current element
// from the page context.
formElement = new XFFormElementImpl();