DeploymentServiceFactory extends FactoryService { @Override public Service createServiceInstance() throws Throwable { return new DeploymentService(); } DeploymentServiceFactory(); @Override Service createServiceInstance(); @Override void handleStop(Operation stop); @Override void handleDelete(Operation delete); static final String SELF_LINK; }
@Test public void testCreateServiceInstance() throws Throwable { Service service = deploymentServiceFactory.createServiceInstance(); assertThat(service, instanceOf(DeploymentService.class)); }