ContextInternals.setMarinerPageContext(requestContext, pageContext);
ContextInternals.setEnvironmentContext(requestContext,
new TestEnvironmentContext());
Pane testPane = new Pane(layout);
testPane.setName("pane");
pageContext.addPaneMapping(testPane);
// Activate the device layout.
RuntimeDeviceLayout runtimeDeviceLayout =
RuntimeDeviceLayoutTestHelper.activate(layout);