@BeforeClass
 public static void startServer() throws Exception {
   server = new HTTPMemServer();
   try {
     server.start();
   } catch (Exception e) {
     server.stop();
     throw e;
   }
 }
 @AfterClass
 public static void stopServer() throws Exception {
   server.stop();
   server = null;
 }