private void setupTez(HiveConf conf) {
      conf.setVar(HiveConf.ConfVars.HIVE_EXECUTION_ENGINE, "tez");
      conf.setVar(HiveConf.ConfVars.HIVE_USER_INSTALL_DIR, TEST_DATA_DIR);
      conf.set("tez.am.resource.memory.mb", "128");
      conf.set("tez.am.dag.scheduler.class", "org.apache.tez.dag.app.dag.impl.DAGSchedulerNaturalOrderControlled");
      conf.setBoolean("tez.local.mode", true);
      conf.setBoolean("tez.local.mode.without.network", true);
      conf.set("fs.defaultFS", "file:///");
      conf.setBoolean("tez.runtime.optimize.local.fetch", true);
      conf.set("tez.staging-dir", TEST_DATA_DIR);
      conf.setBoolean("tez.ignore.lib.uris", true);
    }
Helps in setting up environments to run high level hive tests

For a sample testcase see {@link TestHiveTestEnvSetup}!
Because setting up such a complex environment is a bit more sophisticated than it should;
this class introduces some helper concepts beyond what juni4 has

<ul>
 <li>parts are decomposed into smaller {@link IHiveTestRule}
 <li>{@link HiveTestEnvContext} is visible to every methodcall</li>
 <li>invocation order of before calls are "forward"
 <li>invocation order of before calls are "backward"
 </ul>


Later this should be migrated to junit5...when it will be possible; see HIVE-18495
ql/src/test/org/apache/hive/testutils/HiveTestEnvSetup.java