RepositoryCachingProvider implements CachingProvider { @Override public void close() { synchronized (cacheManagers) { for (ClassLoader classLoader : new ArrayList<>(cacheManagers.keySet())) { close(classLoader); } } }  @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 closeWithClassLoaderTest() { repositoryCachingProvider.close(providerClassLoader); verify(repositoryCacheManager).close(); }
@Test public void closeWithUriAndClassLoaderTest() { repositoryCachingProvider.close(providerUri, providerClassLoader); verify(repositoryCacheManager).close(); }