@Test
public void testCreatChildrenForForm() {
try {
OdfTextDocument doc = OdfTextDocument.newTextDocument();
OfficeTextElement text = doc.getContentRoot();
FormFormElement form = text.newOfficeFormsElement().newFormFormElement();
form.setFormNameAttribute("NewFrom");
OdfFileDom contentDom = doc.getContentDom();
XPath xpath = contentDom.getXPath();
FormFormElement formTest = (FormFormElement) xpath.evaluate("//form:form[last()]", contentDom, XPathConstants.NODE);
Assert.assertEquals(formTest, form);
doc.getContentDom().getDocument().save(ResourceUtilities.newTestOutputFile("CreatChildrenForForm.odt"));
} catch (Exception e) {
Logger.getLogger(CreateChildrenElementsTest.class.getName()).log(Level.SEVERE, e.getMessage(), e);