@Test
public void testNoProxySettingsDefined() throws HttpException {

    initClient();
    HttpClient httpClient = httpClientService.getHttpClient(null);
    assertNull(httpClient.getState().getProxyCredentials(AuthScope.ANY));
    assertNull(httpClient.getHostConfiguration().getProxyHost());
    assertTrue(httpClient == httpClientService.getHttpClient("http://www.jahia.com"));
    assertTrue(httpClient == httpClientService.getHttpClient("https://www.jahia.com"));
    assertTrue(httpClient == httpClientService.getHttpClient("http://localhost:8080"));
    assertTrue(httpClient == httpClientService.getHttpClient("https://localhost:8080"));
    assertTrue(httpClient == httpClientService.getHttpClient("www.jahia.com:9090"));
    assertTrue(httpClient == httpClientService.getHttpClient("localhost:9090"));
    assertTrue(httpClient == httpClientService.getHttpClient("/aaa.html"));
}