*/
protected void doTestUseEnclosingTableCell(
PaneAttributes attributes,
String expected)
throws Exception {
TestDOMOutputBuffer dom = new TestDOMOutputBuffer();
Element element = dom.openStyledElement("td", attributes);
// if (elementClassAttributes != null) {
// element.setAttribute("class", elementClassAttributes);
// }
// Pane attributes can't be null, must contain a valid pane.
attributes.setPane(new Pane(new CanvasLayout()));
protocol.useEnclosingTableCell(dom, attributes);
String actual = DOMUtilities.toString(dom.getRoot());
assertEquals("Result shouild match\n" +
"EXPECTED: " + expected + "\n" +
"ACTUAL : " + actual + "\n", expected, actual);
final MutablePropertyValues attributePropertyValues =
attributes.getStyles().getPropertyValues();