private Configurations getConfigurationsWithUnits() throws URISyntaxException, IOException {
    URL resource = Resources.getResource("config-with-units.yaml");
    JsonNode yamlConfig =
        JacksonUtil.fromObjects(
            new Yaml().loadAs(Files.newInputStream(Paths.get(resource.toURI())), Map.class));
    Map<String, Object> systemConfig =
        JacksonUtil.getMap(
            yamlConfig,
            AmoroManagementConf.SYSTEM_CONFIG,
            new TypeReference<Map<String, Object>>() {});
    Map<String, Object> expandedConfigurationMap = Maps.newHashMap();
    expandConfigMap(systemConfig, "", expandedConfigurationMap);
    return Configurations.fromObjectMap(expandedConfigurationMap);
  }
Test for conflicts when parsing configuration files in older versions (< 0.8)
amoro-ams/src/test/java/org/apache/amoro/server/TestAmoroManagementConf.java