@Test
public void ioReactorConfigUsesGivenConnectTimeout() {

    // given
    HttpClientConfig.Builder httpClientConfigBuilder = createTestHttpClientConfigBuilder();
    int expectedConnectTImeout = random.nextInt(1000) + 1;
    httpClientConfigBuilder.connTimeout(expectedConnectTImeout);
    WrappedHttpClientConfig.Builder builder = createDefaultTestWrappedHttpClientConfigBuilder(httpClientConfigBuilder.build());
    ExtendedJestClientFactory factory = new ExtendedJestClientFactory(builder.build());
    // when
    IOReactorConfig ioReactorConfig = factory.createIoReactorConfig();
    // then
    assertEquals(expectedConnectTImeout, ioReactorConfig.getConnectTimeout());
}