@Override
  public Future<RestResponse> restRequest(final RestRequest request)
  {
    return restRequest(request, new RequestContext());
  }
@Test
  public void testRestWithFailout() throws URISyntaxException, InterruptedException {
    setupRedirectStrategy(true);

    sendAndVerifyRestRequest();

    ArgumentCaptor<RestRequest> requestArgumentCaptor = ArgumentCaptor.forClass(RestRequest.class);
    verify(_d2Client, times(1)).restRequest(requestArgumentCaptor.capture(), any(), any());
    assertEquals(requestArgumentCaptor.getValue().getURI().toString(), REDIRECTED_URI);
  }