GaugeInjectionBean { public void setGauge(long gauge) { this.gauge = gauge; }  @Gauge(name = "gaugeInjection", unit=MetricUnits.NONE) long getGauge(); void setGauge(long gauge);  }
@Test @InSequence(2) public void callGaugeAfterSetterCall( @Metric(absolute = true, name = "org.eclipse.microprofile.metrics.tck.cdi.GaugeInjectionBean.gaugeInjection") Gauge<Long> gauge) { long value = 1L + Math.round(Math.random() * (Long.MAX_VALUE - 1L)); bean.setGauge(value); assertThat("Gauge value is incorrect", gauge.getValue(), is(equalTo(value))); }