@Test
public void includesAGaugeForMappedMemoryUsed() throws Exception {

    final Gauge gauge = (Gauge) buffers.getMetrics().get("mapped.used");
    when(mBeanServer.getAttribute(mapped, "MemoryUsed")).thenReturn(100);
    assertThat(gauge.getValue())
            .isEqualTo(100);
}