@Test
public void builderBuildsWithGivenIoThreadCount() {

    // given
    HttpClientConfig givenConfig = new HttpClientConfig.Builder("http://localhost:9200").build();
    WrappedHttpClientConfig.Builder builder = new WrappedHttpClientConfig.Builder(givenConfig);
    int ioThreadCount = new Random().nextInt(1000) + 10;
    builder.ioThreadCount(ioThreadCount);
    // when
    WrappedHttpClientConfig config = builder.build();
    // then
    assertEquals(ioThreadCount, config.getIoThreadCount());
}