### Question:
CounterFieldBean { public void increment(long n) { counter.inc(n); }  void increment(long n);  }### Answer:
@Test @InSequence(2) public void incrementCounterField() { assertThat("Counter is not registered correctly", registry.getCounters(), hasKey(COUNTER_NAME)); Counter counter = registry.getCounters().get(COUNTER_NAME); long value = Math.round(Math.random() * Long.MAX_VALUE); bean.increment(value); assertThat("Counter value is incorrect", counter.getCount(), is(equalTo(value))); }