super(name);
}
public void testJavaBeanSchemaInitializerInterceptor() throws Exception
{
DefaultSchemaResolver resolver = new DefaultSchemaResolver();
JavaBeanSchemaInitializer si = new JavaBeanSchemaInitializer();
resolver.addSchemaInitializer("urn:jboss:simplejavabean:1.0", si);
resolver.addSchemaLocation("urn:jboss-test:xmbean:2.0", "xml/mbeanserver/jboss_xmbean_2_0.xsd");
resolver.addSchemaLocation("urn:jboss:simplejavabean:1.0", "xml/mbeanserver/simplejavabean_1_0.xsd");
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
String xmlPath = getResourcePath("xml/mbeanserver/testXMBean2.xml");
Object root = unmarshaller.unmarshal(xmlPath, resolver);