public void testUnmarshalWebXml() throws Exception {
URL webXmlMapping = getClass().getResource("castor-web-xml-mapping.xml");
Mapping mapping = new Mapping();
mapping.loadMapping(webXmlMapping);
InputStream webXml = getClass().getResourceAsStream("web.xml");
Unmarshaller unmarshaller = new Unmarshaller(mapping);
unmarshaller.setIgnoreExtraElements(false);
unmarshaller.setDebug(debug);
WebAppDD config = (WebAppDD)unmarshaller.unmarshal(new InputStreamReader(webXml));
assertTrue(config!=null);
}