GaugeMethodBean { @Gauge(name = "gaugeMethod", unit=MetricUnits.NONE) public long getGauge() { return gauge; }  @Gauge(name = "gaugeMethod", unit=MetricUnits.NONE) long getGauge(); void setGauge(long gauge);  }
@Test @InSequence(1) public void gaugeCalledWithDefaultValue() { @SuppressWarnings("unchecked") Gauge<Long> gauge = (Gauge<Long>) registry.getGauge(gaugeMID); assertThat("Gauge is not registered correctly", gauge, notNullValue()); assertThat("Gauge value is incorrect", gauge.getValue(), is(equalTo(0L))); }