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