// Now can actually do the test.
String paneName = "caption-pane";
CanvasLayout canvasLayout =
new CanvasLayout();
TestPane pane = new TestPane(canvasLayout);
pane.setName(paneName);
// Activate the device layout.
RuntimeDeviceLayout runtimeDeviceLayout =
RuntimeDeviceLayoutTestHelper.activate(canvasLayout);