public static Config resolve(Config config) {
        var resolveSystemProperty = System.getenv("KORA_SYSTEM_PROPERTIES_RESOLVE_ENABLED");
        if (resolveSystemProperty == null) {
            resolveSystemProperty = System.getProperty("kora.system.properties.resolve.enabled", "true");
        }
        var ctx = new ResolveContext(config, new ArrayDeque<>(), Boolean.parseBoolean(resolveSystemProperty));
        var newRoot = resolve(ctx, config.root());
        if (newRoot == config.root()) {
            return config;
        }
        return new SimpleConfig(config.origin(), newRoot);
    }
@Test
    void testResolveReference() {
        var config = fromMap(Map.of(
            "object", Map.of(
                "field", "test-value"
            ),
            "reference", "${object.field}"
        )).resolve();
        assertThat(config.get("reference").asString()).isEqualTo("test-value");
    }