private void assertToStringContains(HttpServer server, String text) {
    String description = server.toString();
    assertTrue("Did not find \"" + text + "\" in \"" + description + "\"",
      description.contains(text));
  }
Assert that the result of {@link HttpServer#toString()} contains the specific text
@param server server to examine
@param text   text to search for
hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestHttpServerLifecycle.java