@Test
  void testConflictsForParsingAmoroManagementConfInOldVersions() throws Exception {
    Configurations serviceConfig = getConfigurationsWithoutUnits();
    Configurations expectedConfig =
        Configurations.fromObjectMap(timeRelatedConfigMapWithExpectedTimeUnitsInOldVersions);

    // Checking the parsed time-related configuration items (should fail).
    // As the default unit for `terminal.session.timeout` has changed from minutes to milliseconds
    // since version 0.8.
    Assertions.assertThrows(
        AssertionError.class, () -> assertTimeRelatedConfigs(serviceConfig, expectedConfig));

    // Updating the time-related items with the expected time units in older versions
    Configurations updatedServiceConfig = updateConfigurationOfOldVersions(serviceConfig);

    // Checking the parsed time-related configuration items after upgrading (should pass).
    assertTimeRelatedConfigs(updatedServiceConfig, expectedConfig);
  }
Test for conflicts when parsing configuration files in older versions (< 0.8)
amoro-ams/src/test/java/org/apache/amoro/server/TestAmoroManagementConf.java