@Test
    void verifyOperation() throws Throwable {
        val resource = new UrlResource(new URI("http://localhost:6622/entities/"));
        val adapter = new DynamicMetadataResolverAdapter(Map.of(resource, new MetadataFilterChain()));
        adapter.setConfigBean(configBean);

        val entity = IOUtils.toString(new ClassPathResource("metadata.xml").getInputStream(), StandardCharsets.UTF_8);
        try (val webServer = new MockWebServer(6622,
            new ByteArrayResource(entity.getBytes(StandardCharsets.UTF_8), "Output"), HttpStatus.OK)) {
            webServer.start();
            assertNotNull(adapter.getEntityDescriptorForEntityId("https://carmenwiki.osu.edu/shibboleth"));
        }
    }
This is {@link DynamicMetadataResolverAdapterTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-mdui-core/src/test/java/org/apereo/cas/support/saml/mdui/DynamicMetadataResolverAdapterTests.java