MeterView implements Meter, View { @Override public long getCount() { return counter.getCount(); } MeterView(int timeSpanInSeconds);  MeterView(Counter counter, int timeSpanInSeconds); @Override void markEvent(); @Override void markEvent(long n); @Override long getCount(); @Override double getRate(); @Override void update();  }
@Test public void testGetCount() { Counter c = new SimpleCounter(); c.inc(5); Meter m = new MeterView(c, 60); assertEquals(5, m.getCount()); }