@Test
public void builderBuildsWithGivenHttpClientConfig() {

    // given
    HttpClientConfig givenConfig = new HttpClientConfig.Builder("http://localhost:9200").build();
    WrappedHttpClientConfig.Builder builder = new WrappedHttpClientConfig.Builder(givenConfig);
    // when
    WrappedHttpClientConfig config = builder.build();
    // then
    assertTrue(config.getHttpClientConfig() == givenConfig);
}