### Question:
DependencyManager { public DependencyEntity resolveSingle(URI item) throws IOException { return resolveSingle(item, null); } DependencyManager(Path cacheDir);  DependencyManager(Path cacheDir, Path cfgFile);  DependencyManager(Path cacheDir, List<MavenRepository> repositories); Collection<DependencyEntity> resolve(Collection<URI> items); Collection<DependencyEntity> resolve(Collection<URI> items, ProgressListener listener); DependencyEntity resolveSingle(URI item); DependencyEntity resolveSingle(URI item, ProgressListener listener); static T withRetry(int retryCount, long retryInterval, Callable<T> c,
                                  ResolveExceptionConverter exceptionConverter,
                                  ProgressNotifier notifier); static final String MAVEN_SCHEME; }### Answer:
@Test(timeout = 30000) public void testProxy() throws Exception { Path tmpDir = Files.createTempDirectory("test"); List<MavenRepository> repositories = Collections.singletonList( MavenRepository.builder() .id("test") .url("https: .proxy(MavenProxy.builder() .host("localhost") .port(3128) .build()) .build() ); DependencyManager m = new DependencyManager(tmpDir, repositories); m.resolveSingle(new URI("mvn: }