@Test
public void createClientRequestDelegatesToRequestFactory() throws IOException {

    // given
    HCRequestFactory requestFactory = mock(HCRequestFactory.class);
    HttpClient client = createTestHttpClient(
            mock(CloseableHttpAsyncClient.class),
            mock(ServerPool.class),
            requestFactory,
            mock(HttpAsyncResponseConsumerFactory.class));
    Request request = mock(Request.class);
    // when
    client.createClientRequest(request);
    // then
    verify(requestFactory, times(1)).create(any(), eq(request));
}