ValidLease implements Lease { @Override public boolean allowRenewal() { return true; } ValidLease(long leaseExpiry); @Override boolean isExpired(long now); @Override boolean allowRenewal(); @Override String toString();  }
@Test public void alwaysAllowRenewal() { ValidLease lease = new ValidLease(10L); assertTrue(lease.allowRenewal()); }