@Test
public void testHttpClient() {

    final String proxyHost = "test.proxy";
    final int proxyPort = 5555;
    ServiceFactory serviceFactory = mock(ServiceFactory.class);
    HttpClient httpClient = mock(HttpClient.class);
    when(serviceFactory.createHttpClient(true, proxyHost, proxyPort)).thenReturn(httpClient);
    ToolConfiguration.ConfigurationBuilder configurationBuilder = defaultToolConfigurationBuilder()
            .setProxyHost(proxyHost)
            .setProxyPort(proxyPort);
    AntennaContext context =
            createContext(new AntennaContext.ContextBuilder(serviceFactory), configurationBuilder);
    assertThat(context.getHttpClient()).isEqualTo(httpClient);
}