DelegatingDerivingMeter implements DerivingMeter { @Override public double getFiveMinuteRate() { return delegate.getFiveMinuteRate(); } DelegatingDerivingMeter(Meter delegate); @Override void mark(long currentValue); @Override long getCount(); @Override double getFifteenMinuteRate(); @Override double getFiveMinuteRate(); @Override double getMeanRate(); @Override double getOneMinuteRate();  }
@Test public void shouldReturnValueFromDelegateForFiveMinuteRate() throws Exception { setupRateTest(); assertThat(meter.getFiveMinuteRate(), is(greaterThan(300.0))); }