private HiveConf getHiveConf() {
    HiveConf conf = new HiveConfForTest(getClass());
    // to get consistent number of tasks in assertions
    conf.setVar(ConfVars.HIVE_FETCH_TASK_CONVERSION, "none");
    return conf;
  }
Check if HiveHistory class is a Proxy class when hive history is disabled
@throws Exception
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/history/TestHiveHistory.java