odfDoc = OdfDocument.loadDocument(ResourceUtilities.getAbsolutePath("TestHeaderFooter.odt"));
Map<String, StyleMasterPageElement> masterPages2 = odfDoc.getMasterPages();
StyleMasterPageElement masterPage2 = masterPages2.get("Standard");
// Test if the new footer exists
StyleHeaderElement headerContentRoot2 = OdfElement.findFirstChildNode(StyleHeaderElement.class, masterPage2);
Assert.assertNotNull(headerContentRoot2);
StyleFooterElement footerContentRoot2 = OdfElement.findFirstChildNode(StyleFooterElement.class, masterPage2);
Assert.assertNotNull(footerContentRoot2);
} catch (Exception ex) {