T call() throws IOException, RegistryException {
    String apiRouteBase = "https://" + registryEndpointRequestProperties.getServerUrl() + "/v2/";
    URL initialRequestUrl = registryEndpointProvider.getApiRoute(apiRouteBase);
    return call(initialRequestUrl);
  }
@Test
  public void testCall_logNullExceptionMessage() throws IOException, RegistryException {
    setUpRegistryResponse(new IOException());

    try {
      endpointCaller.call();
      Assert.fail();

    } catch (IOException ex) {
      Mockito.verify(mockEventHandlers)
          .dispatch(
              LogEvent.error("\u001B[31;1mI/O error for image [serverUrl/imageName]:\u001B[0m"));
      Mockito.verify(mockEventHandlers)
          .dispatch(LogEvent.error("\u001B[31;1m    java.io.IOException\u001B[0m"));
      Mockito.verify(mockEventHandlers)
          .dispatch(LogEvent.error("\u001B[31;1m    (null exception message)\u001B[0m"));
      Mockito.verifyNoMoreInteractions(mockEventHandlers);
    }
  }