LeaseConfiguration implements ServiceProviderConfiguration, StateDumpable { public long getLeaseLength() { return leaseLength; } LeaseConfiguration(long initialLength); long getLeaseLength(); void setLeaseLength(long leaseLength); @Override Class<? extends ServiceProvider> getServiceProviderType(); @Override void addStateTo(StateDumpCollector stateDumpCollector);  }
@Test public void givesCorrectLeaseLength() { LeaseConfiguration configuration = new LeaseConfiguration(4L); assertEquals(4L, configuration.getLeaseLength()); }