@Test
@InSequence(2)
public void incrementCounterField() {

    Counter counter = registry.getCounter(counterMID);
    assertThat("Counter is not registered correctly", counter, notNullValue());
    // Call the increment method and assert the counter is up-to-date
    long value = Math.round(Math.random() * Long.MAX_VALUE);
    bean.increment(value);
    assertThat("Counter value is incorrect", counter.getCount(), is(equalTo(value)));
}