private void checkExecutionResponse(CommandProcessor processor, String command) {
    try {
      processor.run(command);
    } catch (CommandProcessorException e) {
      SessionState.get().out.println(e);
      assertTrue("Crypto command failed with the exit code " + e.getResponseCode(), false);
    }
  }
Execute Hive CLI statement
@param cmd arbitrary statement to execute
hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hive/hcatalog/pig/TestHCatLoaderEncryption.java