@Test
public void ignoresGaugesForObjectsWhichCannotBeFound() throws Exception {

    when(mBeanServer.getMBeanInfo(mapped)).thenThrow(new InstanceNotFoundException());
    assertThat(buffers.getMetrics().keySet())
            .containsOnly("direct.count",
                    "direct.capacity",
                    "direct.used");
}