private void verifyDDLHtml(String stmt, String opHandle, boolean assertCondition) throws Exception {
    StringWriter sw = new StringWriter();
    QueryInfo queryInfo = sessionManager.getOperationManager().getQueryInfo(opHandle);
    HiveConf hiveConf = sessionManager.getOperationManager().getHiveConf();
    new QueryProfileTmpl().render(sw, queryInfo, hiveConf);
    String html = sw.toString();
    Assert.assertEquals("HTML assert condition hasn't met, statement: " + stmt + ", html: " + html, assertCondition,
        html.contains(stmt));

    Assert.assertTrue("HTML doesn't contain and expected string, got: " + html, html.contains("testuser"));
  }
Sanity check if basic information is delivered in this html.  Let's not go too crazy and
assert each element, to make it easier to add UI improvements.
itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestQueryDisplay.java