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