@After
  public void tearDown() throws Exception {
    try {
      if (driver != null) {
        dropTable(BASIC_TABLE);
        dropTable(ENCRYPTED_TABLE);
        removeEncryptionZone();
      }
    } finally {
      FileUtils.deleteDirectory(new File(TEST_DATA_DIR));
      if (dfs != null) {
        dfs.shutdown();
      }
    }
  }
Execute Hive CLI statement
@param cmd arbitrary statement to execute
hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hive/hcatalog/pig/TestHCatLoaderEncryption.java