UpgradeAgentTaskFactoryService extends FactoryService { @Override public Service createServiceInstance() { return new UpgradeAgentTaskService(); } UpgradeAgentTaskFactoryService(); @Override Service createServiceInstance(); static final String SELF_LINK; }
@Test public void testCreateServiceInstance() { Service service = upgradeAgentTaskFactoryService.createServiceInstance(); assertThat(service, instanceOf(UpgradeAgentTaskService.class)); }