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