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