private void restartSessionAndDriver(HiveConf conf) throws Exception {
    SessionState ss = SessionState.get();
    if (ss != null) {
      ss.close();
    }
    if (d != null) {
      d.close();
      d.destroy();
    }

    SessionState.start(conf);
    d = DriverFactory.newDriver(conf);
  }
Checks if the file format is original or ACID file based on OrcInputFormat static methods.
@param path The file to check
@param expected The expected result of the isOriginal
@throws IOException Error when reading the file
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/TestAcidOnTez.java