@Parameters(name="{1}")
  public static Collection<Object[]> data() throws IOException, InterruptedException {
    // generate the dummy driver by using txt file
    String u = HiveTestUtils.getFileFromClasspath("DummyDriver.txt");
    Map<File, String> extraContent=new HashMap<>();
    extraContent.put(new File("META-INF/services/java.sql.Driver"), dummyDriverClazzName);
    File jarFile = HiveTestUtils.genLocalJarForTest(u, dummyDriverClazzName, extraContent);
    String pathToDummyDriver = jarFile.getAbsolutePath();
    String pathToPostgresJar = System.getProperty("maven.local.repository")
        + File.separator + "org"
        + File.separator + "postgresql"
        + File.separator + "postgresql"
        + File.separator + "42.7.3"
        + File.separator
        + "postgresql-42.7.3.jar";
    return Arrays.asList(new Object[][] {
        { "jdbc:postgresql://host:5432/testdb", "org.postgresql.Driver", pathToPostgresJar, true },
        { "jdbc:dummy://host:5432/testdb", dummyDriverClazzName, pathToDummyDriver, false } });
  }
Unit test for Beeline arg parser.
beeline/src/test/org/apache/hive/beeline/TestBeelineArgParsing.java