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