@Test public void testServiceOptions() { EnumSet<Service.ServiceOption> expected = EnumSet.of( Service.ServiceOption.CONCURRENT_UPDATE_HANDLING, Service.ServiceOption.FACTORY, Service.ServiceOption.REPLICATION); assertThat(factoryService.getOptions(), is(expected)); }
@Test public void testCreateServiceInstance() throws Throwable { Service service = factoryService.createServiceInstance(); assertThat(service, instanceOf(VmDeprovisionTaskService.class)); }