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