ComponentInstance leaking = ipojoHelper.createComponentInstance(DEFAULT_LEAKING_SERVICE);
assertThat(hello.getState()).isEqualTo(ComponentInstance.VALID);
assertThat(leaking.getState()).isEqualTo(ComponentInstance.VALID);
LeakingService service = osgiHelper.waitForService(LeakingService.class,
"(instance.name=" + leaking.getInstanceName() + ")", 1000);
osgiHelper.waitForService(HelloService.class, "(instance.name=" + hello.getInstanceName() + ")", 1000);
String result = service.executeListener();
assertThat(result).isEqualToIgnoringCase("hello iPOJO");
hello.stop();
result = service.executeListener();
assertThat(result).isNull();
}