* emulated elements are correctly captured on the emulating elements.
*/
public void testFlattenTableCellWithStylesAndUnnamedUnstyledParent()
throws IOException, SAXException, ParserConfigurationException {
Styles expectedStyles = generateTestColorStyles();
Element newParent = doFlattenTableCell(expectedStyles,
false, true, false, false);
assertNull(newParent.getStyles());
Element child = (Element)newParent.getHead();
assertNotNull(child);
assertNotNull(child.getStyles());
Styles actualStyles = child.getStyles();
checkFlattenedValues(expectedStyles, actualStyles, true);
newParent = doFlattenTableCell(expectedStyles,
true, true, false, false);
assertNull(newParent.getStyles());