T call() throws IOException, RegistryException {
    String apiRouteBase = "https://" + registryEndpointRequestProperties.getServerUrl() + "/v2/";
    URL initialRequestUrl = registryEndpointProvider.getApiRoute(apiRouteBase);
    return call(initialRequestUrl);
  }
@Test
  public void testHttpTimeout_0accepted() throws IOException, RegistryException {
    ArgumentCaptor<Request> requestCaptor = ArgumentCaptor.forClass(Request.class);
    Mockito.when(mockHttpClient.call(Mockito.any(), Mockito.any(), requestCaptor.capture()))
        .thenReturn(mockResponse);

    System.setProperty(JibSystemProperties.HTTP_TIMEOUT, "0");
    endpointCaller.call();

    Assert.assertEquals(0, new RequestWrapper(requestCaptor.getValue()).getHttpTimeout());
  }