canvasLayout = new CanvasLayout();
pane = new Pane(canvasLayout);
pane.setName("TestPane");
// Activate the device layout.
RuntimeDeviceLayout runtimeDeviceLayout =
RuntimeDeviceLayoutTestHelper.activate(canvasLayout);
deviceLayoutContext = new TestDeviceLayoutContext();
deviceLayoutContext.setDeviceLayout(runtimeDeviceLayout);
pageContext.pushDeviceLayoutContext(deviceLayoutContext);