@Test
  public void testHplSqlProcedureCallingWithSomeDefaultValues() throws Throwable {
    String scriptText =
        "DROP TABLE IF EXISTS result;\n" +
            "CREATE TABLE result (s string);\n" +
            "CREATE PROCEDURE p1(s STRING DEFAULT 'default_val', num NUMBER DEFAULT 123)\n" +
            "BEGIN\n" +
            "INSERT INTO result VALUES(s || ' = ' || num);\n" +
            "END;\n" +
            "p1('Pass_Value');\n" +
            "SELECT * FROM result;" ;
    testScriptFile(scriptText, args(), "Pass_Value = 123");
  }
Start up a local Hive Server 2 for these tests
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java