HttpUriRequestConverter { public HttpClientRequestContext convert(Request request, Site site, Proxy proxy) { HttpClientRequestContext httpClientRequestContext = new HttpClientRequestContext(); httpClientRequestContext.setHttpUriRequest(convertHttpUriRequest(request, site, proxy)); httpClientRequestContext.setHttpClientContext(convertHttpClientContext(request, site, proxy)); return httpClientRequestContext; }  HttpClientRequestContext convert(Request request, Site site, Proxy proxy);  }
@Test public void test_illegal_uri_correct() throws Exception { HttpUriRequestConverter httpUriRequestConverter = new HttpUriRequestConverter(); HttpClientRequestContext requestContext = httpUriRequestConverter.convert(new Request(UrlUtils.fixIllegalCharacterInUrl("http: assertThat(requestContext.getHttpUriRequest().getURI()).isEqualTo(new URI("http: }