OdfStylePageLayout pageLayout = master.getAutomaticStyles()
.getPageLayout(pageLayoutName);
Assert.assertNotNull(pageLayout);
// check page layout properties
StylePageLayoutPropertiesElement properties = (StylePageLayoutPropertiesElement) pageLayout
.getPropertiesElement(OdfStylePropertiesSet.PageLayoutProperties);
Assert.assertNotNull(properties);
// page width
checkDoubleValue(masterPage.getPageWidth(), properties
.getFoPageWidthAttribute());
// page height
checkDoubleValue(masterPage.getPageHeight(), properties
.getFoPageHeightAttribute());
// footnote max height
checkDoubleValue(masterPage.getFootnoteMaxHeight(), properties
.getStyleFootnoteMaxHeightAttribute());
// margins
checkDoubleValue(masterPage.getMarginTop(), properties
.getFoMarginTopAttribute());
checkDoubleValue(masterPage.getMarginBottom(), properties
.getFoMarginBottomAttribute());
checkDoubleValue(masterPage.getMarginLeft(), properties
.getFoMarginLeftAttribute());
checkDoubleValue(masterPage.getMarginRight(), properties
.getFoMarginRightAttribute());
// writing mode
checkStringValue(masterPage.getWritingMode(), properties
.getStyleWritingModeAttribute());
// number format
checkStringValue(masterPage.getNumberFormat(), properties
.getStyleNumFormatAttribute());
// print orientation
checkStringValue(masterPage.getPrintOrientation(), properties
.getStylePrintOrientationAttribute());
// check footnote separator line
StyleFootnoteSepElement footnoteSep = (StyleFootnoteSepElement) properties
.getElementsByTagName("style:footnote-sep").item(0);
Assert.assertNotNull(footnoteSep);
checkStringValue(masterPage.getFootnoteSepAdjustment(), footnoteSep
.getStyleAdjustmentAttribute());
checkStringValue(masterPage.getFootnoteSepColor(), footnoteSep