@Test
    public void testWriteRecord() throws IOException {
        Row row = Row.of(1, "foo_name");
        Tuple2<Boolean, Row> tuple = Tuple2.of(true, row);
        doNothing().when(counter).inc();
//        PowerMockito.mockStatic(TablePrintUtil.class);
//        TablePrintUtil printUtilMock = Whitebox.newInstance(TablePrintUtil.class);
//        Whitebox.newInstance(printUtilMock, "print")
//        TablePrintUtil printUtilMock = PowerMockito.mock(TablePrintUtil.class);
//        PowerMockito.doNothing().when(printUtilMock).print();
//        PowerMockito.when(TablePrintUtil.build((String[][]) any())).thenReturn(printUtilMock);
//        TablePrintUtil.build((String[][]) null);
        consoleOutputFormat.outRecords = counter;
        consoleOutputFormat.writeRecord(tuple);
    }
@program: flink.sql
@description:
@author: wuren
@create: 2020-06-16 20:43
console/console-sink/src/test/java/com/dtstack/flink/sql/sink/console/ConsoleOutputFormatTest.java