public void testCreatChildrenForStyles() {
try {
OdfDocument textDoc = OdfTextDocument.newTextDocument();
OdfOfficeStyles styles = textDoc.getOrCreateDocumentStyles();
StyleDefaultStyleElement def = styles.newStyleDefaultStyleElement("text");
def.setStyleFamilyAttribute(OdfStyleFamily.Paragraph.toString());
def.setProperty(StyleTextPropertiesElement.TextUnderlineColor, "#00FF00");
StyleStyleElement parent = styles.newStyleStyleElement("text","TheParent");
parent.setStyleFamilyAttribute(OdfStyleFamily.Paragraph.toString());
parent.setProperty(StyleTextPropertiesElement.FontSize, "17pt");