@Test
@InSequence(2)
public void callGaugeAfterSetterCall(
        @Metric(absolute = true, name = "org.eclipse.microprofile.metrics.tck.cdi.GaugeInjectionBean.gaugeInjection") Gauge<Long> gauge) {

    // Call the setter method and assert the gauge is up-to-date
    long value = 1L + Math.round(Math.random() * (Long.MAX_VALUE - 1L));
    bean.setGauge(value);
    assertThat("Gauge value is incorrect", gauge.getValue(), is(equalTo(value)));
}