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