@Before
  public void setup() {
    conf = new HiveConfForTest(getClass());
    conf.set("hive.support.concurrency", "false");

    sessionManager = new SessionManager(null, true);
    sessionManager.init(conf);
    sessionManager.start();
  }
Test QueryDisplay and its consumers like WebUI.
itests/hive-unit/src/test/java/org/apache/hive/service/cli/session/TestQueryDisplay.java