XSLTTemplatesContextResolver implements ContextResolver<XSLTTemplatesContextResolver> { @Override public XSLTTemplatesContextResolver getContext(Class<?> type) { return this; } XSLTTemplatesContextResolver(TemplatesParser templatesParser); @Override XSLTTemplatesContextResolver getContext(Class<?> type); void addAsTemplate(String name, Source source); void addTemplates(String name, Templates templates); void removeTemplates(String name); Templates getTemplates(String name);  }
@Test public void getsXSLTTemplatesContextResolverAsContextResolver() throws Exception { XSLTTemplatesContextResolver contextResolver = xsltTemplatesContextResolver.getContext(null); assertSame(xsltTemplatesContextResolver, contextResolver); }