@Test
public void configurableViaBuilder() {

    final MetricRegistry registry = Mockito.mock(MetricRegistry.class);
    InstrumentedHttpClientConnectionManager.builder(registry)
            .name("some-name")
            .name("some-other-name")
            .build()
            .close();
    ArgumentCaptor<String> argumentCaptor = ArgumentCaptor.forClass(String.class);
    Mockito.verify(registry, Mockito.atLeast(1)).register(argumentCaptor.capture(), any());
    assertTrue(argumentCaptor.getValue().contains("some-other-name"));
}