pane.setName(PANE_NAME);
Element parent = null;
dom.initialise();
PaneAttributes attributes = new PaneAttributes();
attributes.setStyles(StylesBuilder.getStyles(
"background-color: #ff0000"));
attributes.setPane(pane);
context.setFormatInstance(new TestPaneInstance());
protocol.setMarinerPageContext(context);
parent = dom.openStyledElement("td", attributes);
parent.setAttribute("id", "parent");
attributes.setId("child");
protocol.openPane(dom, attributes);
Element element = dom.getCurrentElement();
assertEquals("Element name", "div", element.getName());
}