VmProvisionTaskFactoryService extends FactoryService { @Override public Service createServiceInstance() throws Throwable { return new VmProvisionTaskService(); } VmProvisionTaskFactoryService(); @Override Service createServiceInstance(); static final String SELF_LINK; }
@Test public void testCreateServiceInstance() throws Throwable { Service service = factoryService.createServiceInstance(); assertThat(service, instanceOf(VmProvisionTaskService.class)); }