@Test
  public void testShowDbInPrompt() throws Throwable {
    final String EXPECTED_PATTERN = " \\(default\\)>";
    List<String> argList = new ArrayList<>();
    argList.add("--showDbInPrompt");
    argList.add("-u");
    argList.add(miniHS2.getBaseJdbcURL() + ";user=hivetest;password=hive");
    String SCRIPT_TEXT = "select current_user();";

    testScriptFile(SCRIPT_TEXT, argList, OutStream.ERR, EXPECTED_PATTERN, true);
  }
Attempt to execute a simple script file with the usage of user & password variables in URL.
Test for presence of an expected pattern
in the output (stdout or stderr), fail if not found
Print PASSED or FAILED
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java