CounterStatistic extends Counter { public synchronized long getIntervalValue() { return getValue()-mark; } CounterStatistic(int startValue); void performAction(int action); synchronized long getIntervalValue(); synchronized void clear();  }
@Test public void testGetIntervalValue() throws Exception { CounterStatistic cs = new CounterStatistic(10); assertEquals( 0, cs.getIntervalValue()); }