private void associateEncryptionZoneWithPath(String path) throws Exception {
    LOG.info(this.storageFormat + ": associateEncryptionZoneWithPath");
    assumeTrue(!TestUtil.shouldSkip(storageFormat, DISABLED_STORAGE_FORMATS));
    enableTestOnlyCmd(SessionState.get().getConf());
    CommandProcessor crypto = getTestCommand("crypto");
    if (crypto == null) {
      return;
    }
    checkExecutionResponse(crypto, "CREATE_KEY --keyName key_128 --bitLength 128");
    checkExecutionResponse(crypto, "CREATE_ZONE --keyName key_128 --path " + path);
  }
Execute Hive CLI statement
@param cmd arbitrary statement to execute
hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hive/hcatalog/pig/TestHCatLoaderEncryption.java