new HttpClientRemoteStorage(Providers.of(mock(SystemStatus.class)),
mock(MimeSupport.class), mock(QueryStringBuilder.class), new HttpClientManagerImpl(httpClientFactory));
// a mock proxy repository with some mocks to make RRS work
final RemoteStorageContext proxyContext = new DefaultRemoteStorageContext(globalRemoteStorageContext);
final ProxyRepository repository = mock(ProxyRepository.class);
when(repository.getId()).thenReturn("foo");
when(repository.getName()).thenReturn("foo");
when(repository.getRemoteStorageContext()).thenReturn(proxyContext);
// a mock remote server that will simply "hang" to occupy the request socket
final Server server =
Server.withPort(0).serve("/").withBehaviours(Behaviours.pause(Time.days(1))).start();
// the URL we will try to connect to