*/
public void testUpdateFormFragmentationState() throws RepositoryException {
// The layout consists of an outer fragment that contains an inner
// fragment which contains a grid. The grid has two fragmented form
// fields containing panes.
Fragment outerFrag = new Fragment(canvasLayout);
outerFrag.setName("outerFrag");
canvasLayout.setRootFormat(outerFrag);
Fragment innerFrag = new Fragment(canvasLayout);
innerFrag.setName("innerFrag");
innerFrag.setParent(outerFrag);
FormFragment formFrag1 = new FormFragment(canvasLayout);
formFrag1.setName("formFrag1");
FormFragment formFrag2 = new FormFragment(canvasLayout);
formFrag2.setName("formFrag2");
Form form = new Form(canvasLayout);
form.setName("form");
form.addFormFragment(formFrag1);
form.addFormFragment(formFrag2);
form.setParent(innerFrag);
Grid grid = new Grid(canvasLayout);
grid.setRows(2);
grid.setColumns(1);
grid.setParent(form);
grid.attributesHaveBeenSet();
formFrag1.setParent(grid);
formFrag2.setParent(grid);
Pane pane1 = new Pane(canvasLayout);
pane1.setName("pane1");
pane1.setParent(formFrag1);
Pane pane2 = new Pane(canvasLayout);
pane2.setName("pane2");
pane2.setParent(formFrag2);
MarinerURL requestURL = context.getRequestURL(false);
requestURL.setParameterValue("vfrag", "f1");
try {
// Set the children of the formats.
outerFrag.setChildAt(innerFrag, 0);
innerFrag.setChildAt(grid, 0);
grid.setChildAt(formFrag1, 0);
grid.setChildAt(formFrag2, 1);
formFrag1.setChildAt(pane1, 0);
formFrag2.setChildAt(pane2, 0);