protected void onSetUp() throws Exception {
refreshEvents.clear();
// override the listener with another implementation that waits until the appCtx are fully started
listener = new OsgiBundleApplicationContextListener() {
public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
System.out.println("receiving event " + event.getClass());
if (event instanceof BootstrappingDependencyEvent) {
eventList.add(event);