grid.setChildAt(formFrag2, 1);
formFrag1.setChildAt(pane1, 0);
formFrag2.setChildAt(pane2, 0);
// Set up the FormatScopes correctly.
DeviceLayoutReplicator replicator = new DeviceLayoutReplicator();
replicator.replicate(canvasLayout);
} catch (LayoutException e) {
e.printStackTrace();
fail("Error setting up test: " + e.getMessage());
}
activateAndSetDeviceLayout();