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