@Test
public void shouldNotCaptureCounterGauge() throws Exception {

    // given
    GaugeConfig gaugeConfig = ImmutableGaugeConfig.builder()
            .mbeanObjectName("test:aaa=bbb")
            .addMbeanAttributes(ImmutableMBeanAttribute.of("ccc", true))
            .build();
    when(lazyPlatformMBeanServer.getAttribute(any(ObjectName.class), anyString(),
            anyMBeanServerList())).thenReturn(555);
    // need to execute run() once in order to initialize internal priorRawCounterValues map
    gaugeCollector.run();
    // when
    List<GaugeValue> gaugeValues =
            collectGaugeValues(gaugeConfig);
    // then
    assertThat(gaugeValues).isEmpty();
}