log.println("...done");
log.println("Checking sections in loaded test document...");
XTextSectionsSupplier xTSS = (XTextSectionsSupplier)
UnoRuntime.queryInterface(XTextSectionsSupplier.class, xTextDoc);
XNameAccess xSections = xTSS.getTextSections();
XMetadatable xSection1 = (XMetadatable) UnoRuntime.queryInterface(
XMetadatable.class, xSections.getByName("Section 1"));
assure("idsection1", eq(xSection1.getMetadataReference(),
new StringPair("content.xml", "idSection1")));