"}" +
"*:active {" +
"background-color: #0000ff; " +
"}"));
Styles styles = tableCellAttributes.getStyles();
// we need to override the style with this mock style only for testing
// the bgimage as the actual addBackgroundImage in the style attempts
// to perform methods on a null Volantis object.
WapTV5_WMLVersion1_3Style style =
new WapTV5_WMLVersion1_3Style(
styles.getPropertyValues(), wapProtocol);
wapProtocol.setStyle(style);
wapProtocol.setActiveStyle(new WapTV5_WMLVersion1_3Style(
styles.findNestedStyles(StatefulPseudoClasses.ACTIVE)
.getPropertyValues(), wapProtocol));
wapProtocol.setFormatStyle(new WapTV5_WMLVersion1_3Style(
styles.findNestedStyles(StatefulPseudoClasses.ACTIVE)
.getPropertyValues(), wapProtocol));
Element element = domFactory.createElement();
protocol.addTableCellAttributes(element, tableCellAttributes);
assertEquals("1", element.getAttributeValue("linegap"));