@Test
        void verifyBadPolicy() {
            val registrationRequest = new OidcClientRegistrationRequest();
            registrationRequest.setRedirectUris(List.of("https://apereo.github.io"));
            registrationRequest.setPolicyUri("https://github.com/apereo.can");
            assertThrows(IllegalArgumentException.class,
                () -> oidcClientRegistrationRequestTranslator.translate(registrationRequest, Optional.empty()));
        }
This is {@link OidcClientRegistrationRequestTranslatorTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcClientRegistrationRequestTranslatorTests.java