### Question:
Activator implements BundleActivator { public void start( BundleContext bundleContext ) { this.pentahoWebPackageServiceTracker = createPentahoWebPackageServiceTracker( bundleContext ); this.pentahoWebPackageServiceTracker.open( true ); }  void start( BundleContext bundleContext ); void stop( BundleContext bundleContext );  }### Answer:
@Test public void start() { BundleContext mockBundleContext = mock( BundleContext.class ); ServiceTracker serviceTrackerMock = spy( activator.createPentahoWebPackageServiceTracker( mockBundleContext ) ); activator = spy( new Activator() ); doReturn( serviceTrackerMock ).when( activator ).createPentahoWebPackageServiceTracker( mockBundleContext ); activator.start( mockBundleContext ); verify( serviceTrackerMock, times( 1 ) ).open( true ); }