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