@Override
      public Boolean answer(final InvocationOnMock invocation) {
        if (mockRowDataIndex < mockRowData.length) {
          mockRow.setCurrentRowData(mockRowData[mockRowDataIndex]);
          mockRowDataIndex++;
          return true;
        } else {
          return false;
        }
      }
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