### Question:
OSGIActivator implements BundleActivator { public BundleContext getBundleContext() { return bundleContext; } OSGIActivator(); BundleContext getBundleContext(); @Override void start( BundleContext bundleContext ); void stop( BundleContext bundleContext );  }### Answer:
@Test public void testGetBundleContext() throws Exception { osgiActivator.start( bundleContext ); assertEquals( bundleContext, osgiActivator.getBundleContext() ); }