private <T> void testGetValueByConfig(
            Properties props,
            ConfigProperty<T> property,
            String key,
            T defaultValue,
            T expectedValue) {
        T value = HudiMetricsConfig.getConfig(props, property);
        Assert.assertEquals(value, defaultValue);

        props.put(key, expectedValue);
        value = HudiMetricsConfig.getConfig(props, property);
        Assert.assertEquals(expectedValue, value);
    }
The UnitTest for {@link HudiMetricsConfig#getConfig(Properties, ConfigOption)}
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/hudi/src/test/java/org/apache/inlong/sort/hudi/metric/HudiMetricsConfigTest.java