public static <T> T ymlToObj(String content, Class<T> clazz) {
        return ymlToObj("", content, clazz, null, null);
    }
@Test
    public void testLoadConfigToYml() {
        String configStr="dataSourceKey: defaultDS\n"
            + "destination: example\n"
            + "groupId: g1\n"
            + "outerAdapterKey: mysql1\n"
            + "concurrent: true\n"
            + "dbMapping:\n"
            + "  _id: _id\n"
            + "  database: mytest\n"
            + "  table: user\n"
            + "  targetTable: mytest2.user\n"
            + "  targetPk:\n"
            + "    id: id\n"
            + "#  mapAll: true\n"
            + "  targetColumns:\n"
            + "    id:\n"
            + "    name:\n"
            + "    role_id:\n"
            + "    c_time:\n"
            + "    test1:\n"
            + "  etlCondition: \"where c_time>={}\"\n"
            + "  commitBatch: 3000 # 批量提交的大小";

        MappingConfig config = YamlUtils.ymlToObj(null, configStr, MappingConfig.class, null, new Properties());

        Assert.assertNotNull(config);
        Assert.assertEquals(config.getDbMapping().getId(), "_id");
        Assert.assertEquals(config.getDestination(), "example");
        Assert.assertEquals(config.getOuterAdapterKey(), "mysql1");
        Assert.assertEquals(config.getDbMapping().getDatabase(), "mytest");
        Assert.assertEquals(config.getDbMapping().getTargetColumns().size(), 5);
    }