@Test
  public void testTSV2Output() throws Throwable {
    String SCRIPT_TEXT = getFormatTestQuery();
    List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL());
    argList.add("--outputformat=tsv2");

    final String EXPECTED_PATTERN = "1\tNULL\tdefg\tab\"c\t1.0";
    testScriptFile(SCRIPT_TEXT, argList, EXPECTED_PATTERN, true);
  }
Test writing output using TSV (new) format
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java