@Test
  public void testStoppingTwiceServerIsAllowed() throws Throwable {
    HttpServer server = createAndStartTestServer();
    assertAlive(server);
    stop(server);
    assertNotLive(server);
    stop(server);
    assertNotLive(server);
  }
Test that the server is not alive once stopped
@throws Throwable on failure
hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestHttpServerLifecycle.java