@After
 public void cleanup() throws Exception {
   stopModule();
   moduleManager.stop();
   moduleManager = null;
 }
 /**
  * Stops the module to be tested and verifies that it has stopped.
  *
  * @throws Exception if an error occurs
  */
 protected void stopModule() throws Exception {
   moduleManager.stop(getInstanceURN());
   assertEquals(ModuleState.STOPPED, moduleManager.getModuleInfo(getInstanceURN()).getState());
 }