protected void runTest() throws Throwable {
OMFactory factory = metaFactory.getOMFactory();
OMDocument document = OMXMLBuilderFactory.createOMBuilder(factory,
new StringReader("<?pi data?><root>text</root>")).getDocument();
if (complete) {
document.build();
}
OMProcessingInstruction firstChild = (OMProcessingInstruction)document.getFirstOMChild();
OMElement documentElement;
if (accessDocumentElement) {
documentElement = document.getOMDocumentElement();