@Before
  public void setup() throws IOException, URISyntaxException {
    System.setProperty("datanucleus.schema.autoCreateAll", "true");
    cli = new HiveCli();
    initFromFile();
    redirectOutputStream();
  }
This method is used for verifying CMD to see whether the output contains the keywords provided.
beeline/src/test/org/apache/hive/beeline/cli/TestHiveCli.java