public CloseableHttpClient build(String name) {
        final CloseableHttpClient client = buildWithDefaultRequestConfiguration(name).getClient();
        // If the environment is present, we tie the client with the server lifecycle
        if (environment != null) {
            environment.lifecycle().manage(new Managed() {
                @Override
                public void stop() throws Exception {
                    client.close();
                }
            });
        }
        return client;
    }
@Test
    void buildWithAnotherBuilder() {
        CustomBuilder builder = new CustomBuilder(new MetricRegistry(), anotherApacheBuilder);
        builder.build("test");
        assertThat(anotherApacheBuilder).extracting("requestExec")
                .isInstanceOf(CustomRequestExecutor.class);
    }