//-------------------------------------------------
// Ensure annotations are processed correctly
//-------------------------------------------------
URL srcXML = classLoader.getResource("annotation/empty-web-src.xml");
XmlObject xmlObject = XmlObject.Factory.parse(srcXML, options);
WebAppDocument webAppDoc = (WebAppDocument) xmlObject.changeType(WebAppDocument.type);
WebAppType webApp = webAppDoc.getWebApp();
AnnotatedWebApp annotatedWebApp = new AnnotatedWebApp(webApp);
PersistenceContextAnnotationHelper.processAnnotations(annotatedWebApp, classFinder);
URL expectedXML = classLoader.getResource("annotation/persistence-context-expected.xml");
XmlObject expected = XmlObject.Factory.parse(expectedXML);