### Question:
ClassLoaderResolver implements Closeable { public void close() throws IOException { for (ClassLoader classLoader : classLoaders.values()) { if (classLoader instanceof Closeable) { ((Closeable) classLoader).close(); } } } ClassLoaderResolver(Log log, RepositorySystem repositorySystem, RepositorySystemSession repositorySystemSession, List<RemoteRepository> remoteRepositories); ClassLoader resolve(MavenCoordinate mavenCoordinate); void close();  }### Answer:
@Test public void testClose() throws Exception { classLoaderResolver.resolve(new MavenCoordinate(FOO, BAR, QUX, JAR)); classLoaderResolver.close(); }