ExtenderActivator implements BundleActivator, SynchronousBundleListener { @Override public void bundleChanged(BundleEvent event) { if (event.getType() == STARTED) { activateExtensionClasses(ExtensionClasses.loadAll(event.getBundle())); } } ExtenderActivator(); @Override void bundleChanged(BundleEvent event); @Override void start(BundleContext context); @Override void stop(BundleContext context);  }
@Test public void testBundleChanged() { bundleListener.bundleChanged(bundleEvent); assertEquals(1, ExtensionsCount.getValue()); }