    @Test
    public void testTransformer() {

        String script = "import com.alibaba.fastjson.JSON;\n"
                        + "\n"
                        + "    public String transform(List<RowMetaData> rowMetaDataList) {\n"
                        + "        // 自定义的处理转换\n"
                        + "        return JSON.toJSONString(rowMetaDataList);\n"
                        + "    }";

        PostGroovyShellDataTransformer postGroovyShellDataTransformer = new PostGroovyShellDataTransformer(script);
        String transform = postGroovyShellDataTransformer.transform(rowMetaDataList);
        System.out.println(transform);
    }