RepositoryCachingProvider implements CachingProvider { @Override public CacheManager getCacheManager() { return getCacheManager(getDefaultURI(), getDefaultClassLoader()); }  @Override ClassLoader getDefaultClassLoader(); @Override URI getDefaultURI(); @Override Properties getDefaultProperties(); @Override CacheManager getCacheManager(); @Override CacheManager getCacheManager(URI uri, ClassLoader classLoader); @Override CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties); @Override void close(); @Override void close(ClassLoader classLoader); @Override void close(URI uri, ClassLoader classLoader); @Override boolean isSupported(OptionalFeature optionalFeature);  }
@Test public void getCacheManagerTest() { CacheManager cacheManager = repositoryCachingProvider.getCacheManager(); assertTrue(cacheManager instanceof RepositoryCacheManager); assertEquals(repositoryCacheManager, cacheManager); }
@Test public void getCacheManagerWithParametersTest() { CacheManager cacheManager = repositoryCachingProvider.getCacheManager(providerUri, providerClassLoader); assertTrue(cacheManager instanceof RepositoryCacheManager); assertEquals(repositoryCacheManager, cacheManager); }
@Test public void getCacheManagerWithParametersURINoMatchTest() { CacheManager cacheManager = repositoryCachingProvider.getCacheManager(providerUri, providerClassLoader); assertTrue(cacheManager instanceof RepositoryCacheManager); assertEquals(repositoryCacheManager, cacheManager); }
@Test public void getCacheManagerWithAllParametersTest() { CacheManager cacheManager = repositoryCachingProvider.getCacheManager(providerUri, providerClassLoader, providerProperties); assertTrue(cacheManager instanceof RepositoryCacheManager); assertEquals(repositoryCacheManager, cacheManager); }