@Test
  public void testCustomDelimiterWithMultiQuery() throws Throwable {
    String SCRIPT_TEXT = "select 'hello', 'hello', 'hello'$select 'world', 'world', 'world'$";
    final String EXPECTED_PATTERN1 = "hello\thello\thello";
    final String EXPECTED_PATTERN2 = "world\tworld\tworld";
    List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL());
    argList.add("--delimiter=$");
    argList.add("--outputformat=tsv2");
    List<Tuple<String>> expectedMatches = Arrays.asList(new Tuple<>(EXPECTED_PATTERN1, true),
            new Tuple<>(EXPECTED_PATTERN2, true));
    testScriptFile(SCRIPT_TEXT, argList, OutStream.OUT, expectedMatches);
  }
Test that Beeline can handle \\ characters within a string literal. Either at the beginning, middle, or end of the
literal.
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java