@Test public void shouldOnlyMakeOneGetCallToTheUnderlyingStore() { upperLimit.get(); upperLimit.get(); verify(boundStore, times(1)).getUpperLimit(); }
public long get() { return currentLimit; }
PersistentUpperLimit { public long get() { return currentLimit; } }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); long get(); void increaseToAtLeast(long newLimit); }
PersistentUpperLimit { public long get() { return currentLimit; } PersistentUpperLimit(TimestampBoundStore boundStore); long get(); void increaseToAtLeast(long newLimit);  }