@Test
public void testNewClient() {

    ObjectMapper mapper = mock(ObjectMapper.class);
    HttpClientConfig config = HttpClientConfig.basicConfig()
            .withObjectMapper(mapper);
    HttpClientImpl client = createClient(config);
    assertThat(client.getMapper()).isSameAs(mapper);
    assertThat(client.getClient().proxy()).isNull();
}