@Test
  public final void testPrint() throws SQLException {
    setupMockData();
    BufferedRows bfRows = new BufferedRows(mockBeeline, mockResultSet);
    TableOutputFormat instance = new TableOutputFormat(mockBeeline);
    String expResult = "+-------+------------------------------+";
    instance.print(bfRows);
    String outPutResults = mockBeeline.getLastPrintedLine();
    assertEquals(expResult, outPutResults);
  }
Test of print method, of class TableOutputFormat. There was an empty extra column after the
last one.
beeline/src/test/org/apache/hive/beeline/TestTableOutputFormat.java