protected void tearDown() throws Exception { if (server != null) { server.stop(); } Thread.sleep(1 * 1000); }