### Question:
BundleClassloaderAwareProcessEngineController extends JmxManagedProcessEngineController { @Override public void start(PlatformServiceContainer contanier) { processEngineFactory.setProcessEngineConfiguration(processEngineConfiguration); processEngineFactory.setBundle(context.getBundle()); processEngineFactory.init(); processEngine = processEngineFactory.getObject(); registration = context.registerService(ProcessEngine.class, processEngine, new Hashtable<String, String>()); } BundleClassloaderAwareProcessEngineController(ProcessEngineConfiguration processEngineConfiguration, BundleContext context); @Override void start(PlatformServiceContainer contanier); @Override void stop(PlatformServiceContainer container);  }### Answer:
@SuppressWarnings("unchecked") @Test public void start(){ BundleContext context = mock(BundleContext.class); when(context.getBundle()).thenReturn(mock(Bundle.class)); BundleClassloaderAwareProcessEngineController controller = new TestBundleClassloaderAwareProcessEngineController(new StandaloneInMemProcessEngineConfiguration(), context); controller.start(mock(PlatformServiceContainer.class)); verify(context, atLeastOnce()).registerService(eq(ProcessEngine.class), any(ProcessEngine.class), any(Hashtable.class)); }