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