@Test @InSequence(2) public void callMeteredMethodOnce() { assertThat("Meter is not registered correctly", registry.getMeters(), hasKey(METER_NAME)); Meter meter = registry.getMeters().get(METER_NAME); bean.meteredMethod(); assertThat("Timer count is incorrect", meter.getCount(), is(equalTo(METER_COUNT.incrementAndGet()))); }
@Metered(name = "meteredMethod") public void meteredMethod() { }
MeteredMethodBean { @Metered(name = "meteredMethod") public void meteredMethod() { } }
MeteredMethodBean { @Metered(name = "meteredMethod") public void meteredMethod() { }  }
MeteredMethodBean { @Metered(name = "meteredMethod") public void meteredMethod() { }  @Metered(name = "meteredMethod") void meteredMethod(); }
MeteredMethodBean { @Metered(name = "meteredMethod") public void meteredMethod() { }  @Metered(name = "meteredMethod") void meteredMethod();  }