@Before
    public void setUp() {
        MockitoAnnotations.initMocks(this);
        builder = ConsoleOutputFormat.buildOutputFormat();
        String[] fieldNames = new String[]{"id", "name"};
        TypeInformation<?>[] fieldTypes = new TypeInformation[]{
                TypeInformation.of(Integer.class),
                TypeInformation.of(String.class)
        };
        builder
                .setFieldNames(fieldNames)
                .setFieldTypes(fieldTypes);
        consoleOutputFormat = builder.finish();
    }
@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