@Test
public void shouldRemoveGauges() {

    final InstrumentedHttpClientConnectionManager instrumentedHttpClientConnectionManager = InstrumentedHttpClientConnectionManager.builder(metricRegistry).build();
    Assert.assertEquals(4, metricRegistry.getGauges().size());
    instrumentedHttpClientConnectionManager.close();
    Assert.assertEquals(0, metricRegistry.getGauges().size());
    // should be able to create another one with the same name ("")
    InstrumentedHttpClientConnectionManager.builder(metricRegistry).build().close();
}