//-------------------------------------------------
// Ensure annotations are processed correctly
//-------------------------------------------------
URL srcXML = classLoader.getResource("annotation/handler-chain-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);
HandlerChainAnnotationHelper.processAnnotations(annotatedWebApp, classFinder);
URL expectedXML = classLoader.getResource("annotation/handler-chain-expected.xml");
XmlObject expected = XmlObject.Factory.parse(expectedXML);
log.debug("[@HandlerChain Source XML] " + '\n' + webApp.toString() + '\n');