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