@Test
public void testWithObjectMapper() {

    ObjectMapper mapper = mock(ObjectMapper.class);
    HttpClientConfig config = HttpClientConfig.basicConfig().withObjectMapper(mapper);
    assertThat(config.proxySettings()).isSameAs(HttpClientConfig.basicConfig().proxySettings());
    assertThat(config.customObjectMapper()).contains(mapper);
}