HostServiceFactory extends FactoryService { @Override public Service createServiceInstance() throws Throwable { return new HostService(); } HostServiceFactory(); @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 = hostServiceFactory.createServiceInstance(); assertThat(service, instanceOf(HostService.class)); }