@Test
public void testWithProxySettings() {

    ProxySettings proxySettings = ProxySettings.useProxy("proxy.host", 12345);
    ObjectMapper mapper = mock(ObjectMapper.class);
    HttpClientConfig config = HttpClientConfig.basicConfig()
            .withObjectMapper(mapper)
            .withProxySettings(proxySettings);
    assertThat(config.proxySettings()).isSameAs(proxySettings);
    assertThat(config.customObjectMapper()).contains(mapper);
}