// check to see that the XFFomElements Pane has been pushed onto
// the Page Contexts pane stack
// assertEquals("Pane Stack size should be 1",
// pageContext.getPaneStack().size(), 1);
Pane currentPane = pageContext.getCurrentPane();
assertSame("Current pane should be " + currentPane, currentPane, pane);
// check to see that pageContext is using the corrent output buffer.
// assertEquals("OutputBuffer stack size should be 1",
// pageContext.getBufferStack().size(), 1);
assertSame("Current outputBuffer should be " + outputBuffer,
pageContext.getCurrentOutputBuffer(), outputBuffer);
initialiseContexts();
pageContext.pushElement(createDummyFormElement(pane));
Pane namedPane = new Pane(canvasLayout);
namedPane.setName("NamedPane");
attributes.setPane(namedPane.getName());
pageContext.addPaneMapping(namedPane);
paneContext = new TestPaneInstance();
paneContext.setFormat(namedPane);
paneContext.setDeviceLayoutContext(deviceLayoutContext);
pageContext.setFormatInstance(paneContext);