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