@Override
      public String answer(final InvocationOnMock invocation) {
        Object[] args = invocation.getArguments();
        int index = ((Integer) args[0]);
        return mockRow.getColumn(index);
      }
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