private List<String> getBaseArgs(String jdbcUrl) {
    List<String> argList = new ArrayList<>(8);
    argList.add("-d");
    argList.add(BeeLine.BEELINE_DEFAULT_JDBC_DRIVER);
    argList.add("-u");
    argList.add(jdbcUrl);
    argList.add("-n");
    argList.add(userName);
    return argList;
  }
TestBeeLineWithArgs - executes tests of the command-line arguments to BeeLine
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java