@Test @InSequence(2) public void callGaugeAfterSetterCall() { assertThat("Gauge is not registered correctly", registry.getGauges(), hasKey(GAUGE_NAME)); @SuppressWarnings("unchecked") Gauge<Long> gauge = registry.getGauges().get(GAUGE_NAME); long value = Math.round(Math.random() * Long.MAX_VALUE); bean.setGauge(value); assertThat("Gauge value is incorrect", gauge.getValue(), is(equalTo(value))); }
public void setGauge(long gauge) { this.gauge = gauge; }
GaugeMethodBean { public void setGauge(long gauge) { this.gauge = gauge; } }
GaugeMethodBean { public void setGauge(long gauge) { this.gauge = gauge; }  }
GaugeMethodBean { public void setGauge(long gauge) { this.gauge = gauge; }  @Gauge(name = "gaugeMethod") long getGauge(); void setGauge(long gauge); }
GaugeMethodBean { public void setGauge(long gauge) { this.gauge = gauge; }  @Gauge(name = "gaugeMethod") long getGauge(); void setGauge(long gauge);  }