@Test
 public void shouldStopRunningServerWhenStoppingBundler() throws Exception {
   // pre-condition: create a first server (no need for script injection)
   createAndLaunchLiveReloadServer("Server 1", false);
   assertThat(liveReloadServer.getServerState()).isEqualTo(IServer.STATE_STARTED);
   // operation: stop the core bundle
   JBossLiveReloadCoreActivator.getDefault()
       .stop(JBossLiveReloadCoreActivator.getDefault().getBundle().getBundleContext());
   // verification
   assertThat(liveReloadServer.getServerState()).isEqualTo(IServer.STATE_STOPPED);
 }
 @After
 public void restartPlugin() throws BundleException {
   Platform.getBundle(JBossLiveReloadCoreActivator.PLUGIN_ID).stop();
   Platform.getBundle(JBossLiveReloadCoreActivator.PLUGIN_ID).start(Bundle.START_TRANSIENT);
   final JBossLiveReloadCoreActivator restartedPlugin = JBossLiveReloadCoreActivator.getDefault();
   assertThat(restartedPlugin).isNotNull();
 }