{
ResteasyProviderFactory.pushContext(Providers.class, getProviderFactory());
{
ContextResolver<JAXBContextFinder> resolver = getProviderFactory().getContextResolver(JAXBContextFinder.class, MediaType.APPLICATION_XML_TYPE);
JAXBContextFinder finder = resolver.getContext(Child.class);
JAXBContext ctx = finder.findCacheContext(MediaType.APPLICATION_XML_TYPE, null, Child.class, Parent.class);
JAXBContext ctx2 = finder.findCacheContext(MediaType.APPLICATION_XML_TYPE, null, Child.class, Parent.class);
Assert.assertTrue(ctx == ctx2);