remoteRepository.setUserName( RedbackRoleConstants.ADMINISTRATOR_ACCOUNT_NAME );
remoteRepository.setPassword( FakeCreateAdminService.ADMIN_TEST_PWD );
getRemoteRepositoriesService().addRemoteRepository( remoteRepository );
ProxyConnectorService proxyConnectorService = getProxyConnectorService();
ProxyConnector proxyConnector = new ProxyConnector();
proxyConnector.setProxyId( "foo-bar1" );
proxyConnector.setSourceRepoId( id );
proxyConnector.setTargetRepoId( "all-merged" );
proxyConnectorService.addProxyConnector( proxyConnector );
repositoriesService.scheduleDownloadRemoteIndex( "all-merged", true, true );
// wait a bit
timeout = 20000;