@Test
    void verifyOidcActionWithMDUI() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        val service = getOidcRegisteredService(UUID.randomUUID().toString());
        servicesManager.save(service);
        WebUtils.putServiceIntoFlowScope(context, RegisteredServiceTestUtils.getService(
            "https://www.example.org?client_id=%s&client_secret=%s&redirect_uri=https://oauth.example.org"
                .formatted(service.getClientId(), service.getClientSecret())));
        val event = oidcRegisteredServiceUIAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
        val mdui = WebUtils.getServiceUserInterfaceMetadata(context, DefaultRegisteredServiceUserInterfaceInfo.class);
        assertNotNull(mdui);
        assertEquals(mdui.getDisplayName(), service.getName());
        assertEquals(mdui.getInformationURL(), service.getInformationUrl());
        assertEquals(mdui.getDescription(), service.getDescription());
        assertEquals(mdui.getPrivacyStatementURL(), service.getPrivacyUrl());
        assertEquals(mdui.getLogoUrl(), service.getLogo());
    }
This is {@link OidcRegisteredServiceUIActionTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/flow/OidcRegisteredServiceUIActionTests.java