### Question:
OSGIActivator implements BundleActivator { public void stop( BundleContext bundleContext ) throws Exception { osgiPluginTracker.shutdown(); beanFactoryLookupServiceTracker.close(); proxyUnwrapperServiceTracker.close(); pdiPluginSupplementalClassMappingsTrackerForPluginRegistry.close(); } OSGIActivator(); BundleContext getBundleContext(); @Override void start( BundleContext bundleContext ); void stop( BundleContext bundleContext );  }### Answer:
@Test public void testStop() throws Exception { osgiActivator.start( bundleContext ); osgiActivator.stop( bundleContext ); verify( osgiPluginTracker ).shutdown(); }