@Test
    void verifyQueryOperation() throws Throwable {
        var properties = CasConfigurationMetadataCatalog.query(ConfigurationMetadataCatalogQuery
            .builder()
            .build());
        assertFalse(properties.properties().isEmpty());

        val file = File.createTempFile("config", ".yml");
        CasConfigurationMetadataCatalog.export(file, properties);
        assertTrue(file.exists());

        properties = CasConfigurationMetadataCatalog.query(ConfigurationMetadataCatalogQuery
            .builder()
            .queryType(ConfigurationMetadataCatalogQuery.QueryTypes.CAS)
            .build());
        assertFalse(properties.properties().isEmpty());

        properties = CasConfigurationMetadataCatalog.query(ConfigurationMetadataCatalogQuery
            .builder()
            .modules(List.of("some-module-name"))
            .queryType(ConfigurationMetadataCatalogQuery.QueryTypes.THIRD_PARTY)
            .build());
        assertTrue(properties.properties().isEmpty());
    }
This is {@link CasConfigurationMetadataRepositoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-configuration-metadata-repository/src/test/java/org/apereo/cas/metadata/CasConfigurationMetadataRepositoryTests.java