@SuppressWarnings("deprecation") @AfterClass public static void stopServer() throws Exception { server.stopServer(); serverThread.stop(); Thread.sleep(4000); }