LeaseServiceProvider implements ServiceProvider, Closeable { @Override public Collection<Class<?>> getProvidedServiceTypes() { return Arrays.asList(LeaseService.class, LeaseConfiguration.class); }  @Override boolean initialize(ServiceProviderConfiguration configuration, PlatformConfiguration platformConfiguration); @Override T getService(long consumerID, ServiceConfiguration<T> serviceConfiguration); @Override Collection<Class<?>> getProvidedServiceTypes(); @Override void prepareForSynchronization(); @Override void close(); @Override void addStateTo(StateDumpCollector stateDumper);  }
@Test public void serviceTypes() { LeaseServiceProvider serviceProvider = new LeaseServiceProvider(); Collection<Class<?>> serviceTypes = serviceProvider.getProvidedServiceTypes(); assertEquals(2, serviceTypes.size()); assertEquals(LeaseService.class, serviceTypes.iterator().next()); }