@Before
  public void setUp() throws Exception {
    cliPort = MetaStoreTestUtils.findFreePort();
    webuiPort = MetaStoreTestUtils.findFreePort();
    while (cliPort == webuiPort) {
      webuiPort = MetaStoreTestUtils.findFreePort();
    }
    HiveConf hiveConf = new HiveConf();
    hiveConf.setBoolVar(ConfVars.HIVE_SERVER2_ENABLE_DOAS, false);
    hiveConf.setBoolVar(ConfVars.HIVE_SERVER2_USE_SSL, false);
    hiveConf.setVar(ConfVars.HIVE_SERVER2_THRIFT_BIND_HOST, host);
    hiveConf.setIntVar(ConfVars.HIVE_SERVER2_THRIFT_PORT, cliPort);
    hiveConf.setVar(ConfVars.HIVE_SERVER2_AUTHENTICATION, HiveAuthConstants.AuthTypes.NOSASL.toString());
    hiveConf.setVar(ConfVars.HIVE_SERVER2_TRANSPORT_MODE, "binary");
    hiveConf.setIntVar(ConfVars.HIVE_SERVER2_WEBUI_PORT, webuiPort);
    hiveConf.setBoolVar(ConfVars.HIVE_DEFAULT_NULLS_LAST, true);
    // disable Query History Service for similar reason as described in MiniHS2
    hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_QUERY_HISTORY_ENABLED, false);

    // Enable showing operation drilldown link
    hiveConf.setBoolVar(ConfVars.HIVE_SERVER2_SHOW_OPERATION_DRILLDOWN_LINK, true);
    hiveServer2 = new HiveServer2();
    hiveServer2.init(hiveConf);
    try {
      hiveServer2.start();
    } catch (Throwable t) {
      t.printStackTrace();
      fail();
    }
    // Wait for startup to complete
    Thread.sleep(2000);
  }
Test operation's drilldown link is presented on TStatus when enabled.
itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftCliServiceWithInfoMessage.java