JAXBContextResolver implements ContextResolver<JAXBContextResolver> { @Override public JAXBContextResolver getContext(Class<?> type) { return this; }  @Override JAXBContextResolver getContext(Class<?> type); JAXBContext getJAXBContext(Class<?> aClass); void addJAXBContext(JAXBContext jaxbContext, Class<?> aClass); void removeJAXBContext(Class<?> aClass);  }
@Test public void getsJAXBContextResolverAsContextResolver() throws Exception { JAXBContextResolver contextResolver = jaxbContextResolver.getContext(null); assertSame(jaxbContextResolver, contextResolver); }