public void testGetOdfElement() {
try {
TextDocument doc = TextDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("headerFooterHidden.odt"));
ChapterField chapterField = Fields.createChapterField(doc.addParagraph("Chapter:").getOdfElement());
chapterField.setOutlineLevel(1);
TextChapterElement tchapterEle = chapterField.getOdfElement();
Assert.assertNotNull(tchapterEle);
Assert.assertEquals("chapter", tchapterEle.getLocalName());
Assert.assertEquals("text:chapter", tchapterEle.getNodeName());
//save
//doc.save(ResourceUtilities.getAbsolutePath("TextFieldSampleDocument.odt"));
} catch (Exception e) {