@AfterClass
  public void stopServer() throws Exception {
    closeQuietly(httpClient);

    if (server != null) {
      server.stop();
    }
  }
 @SuppressWarnings("deprecation")
 @AfterMethod
 public void teardown() {
   Closeables.closeQuietly(server);
   Closeables.closeQuietly(client);
 }