@Test
public void testProxy() {

    MavenRepositoryMock.setCustomSettingsFileName("settings_custom.xml");
    final MavenRepository repo = new MavenRepositoryMock(Aether.getAether());
    final Collection<RemoteRepository> remoteRepos = repo.getRemoteRepositoriesForRequest();
    final Set<RemoteRepository> testServerRepos = remoteRepos
            .stream()
            .filter(r -> r.getId().equals("test-server"))
            .collect(Collectors.toSet());
    assertEquals(2, testServerRepos.size());
    for (RemoteRepository remoteRepository : testServerRepos) {
        assertNotNull(remoteRepository.getProxy());
    }
}