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