@After
 public void after() throws Exception {
   EmbeddedContainer.stop();
   Thread.sleep(1000);
   dispatcher = null;
   deployment = null;
 }
 private static void stopDeployment() throws Exception {
   app.getCache().stop();
   deployment = null;
   app = null;
   EmbeddedContainer.stop();
 }
 @AfterClass
 public static void after() throws Exception {
   EmbeddedContainer.stop();
 }
 @After
 public void after() throws Exception {
   EmbeddedContainer.stop();
   deployment = null;
 }
 public static void shutdown() throws Exception {
   manager.stop();
   manager = null;
   EmbeddedContainer.stop();
   deployment = null;
 }
 @AfterClass
 public static void shutdown() throws Exception {
   client.close();
   EmbeddedContainer.stop();
   deployment = null;
 }