ReconnectionLease implements Lease { @Override public boolean allowRenewal() { throw new AssertionError("There should not be an attempt to renew a ReconnectionLease"); }  @Override boolean isExpired(long now); @Override boolean allowRenewal();  }
@Test(expected = AssertionError.class) public void shouldNeverBeAskedIfItCanBeRenewed() { ReconnectionLease lease = new ReconnectionLease(); lease.allowRenewal(); }