RemoteStorageContextCustomizer customizer = new RemoteStorageContextCustomizer(globalRemoteStorageContext);
final Builder builder = testSubject.prepare(customizer);
final RemoteAuthenticationSettings remoteAuthenticationSettings =
new UsernamePasswordRemoteAuthenticationSettings("user", "pass");
customizer.applyAuthenticationConfig(builder, remoteAuthenticationSettings, null);
final DefaultRemoteHttpProxySettings httpProxy = new DefaultRemoteHttpProxySettings();
httpProxy.setHostname("http-proxy");
httpProxy.setPort(8080);
httpProxy.setProxyAuthentication(new UsernamePasswordRemoteAuthenticationSettings("http-proxy", "http-pass"));