@Test
public void testCustomResolverOut() throws Exception {
ProviderFactory pf = ProviderFactory.getInstance();
pf.registerUserProvider(new JAXBContextProvider());
pf.registerUserProvider(new JAXBContextProvider2());
Message message = prepareMessage("text/xml+c", "text/xml+a");
ContextResolver<JAXBContext> cr = pf.createContextResolver(JAXBContext.class, message);
assertFalse(cr instanceof ProviderFactory.ContextResolverProxy);
assertTrue("JAXBContext ContextProvider can not be found",
cr instanceof JAXBContextProvider);