@Test
  public void testRowsAffected() throws Throwable {
    final String SCRIPT_TEXT = "drop table if exists new_table;\n create table new_table(foo int);\n "
      + "insert into new_table values (1);\n";
    final String EXPECTED_PATTERN = "1 row affected";
    List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL());
    testScriptFile(SCRIPT_TEXT, argList, OutStream.ERR,
        Collections.singletonList(new Tuple<>(EXPECTED_PATTERN, true)),
        Arrays.asList(Modes.SCRIPT));
  }
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