@Test
    void verifyOperation() throws Throwable {
        val client = new CasClient(new CasConfiguration("https://example.org/cas/login"));
        client.setCallbackUrl("https://example.org/cas/callback");
        client.init();
        groovyDelegatedClientAuthenticationRequestCustomizer.customize(client, context);
        assertTrue(context.getRequestAttribute("customAttribute").isPresent());
        assertTrue(groovyDelegatedClientAuthenticationRequestCustomizer.supports(client, context));
        assertTrue(groovyDelegatedClientAuthenticationRequestCustomizer.isAuthorized(context,
            client, RegisteredServiceTestUtils.getService()));
        assertEquals(HIGHEST_PRECEDENCE, groovyDelegatedClientAuthenticationRequestCustomizer.getOrder());
    }
This is {@link GroovyDelegatedClientAuthenticationRequestCustomizerTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/support/pac4j/clients/GroovyDelegatedClientAuthenticationRequestCustomizerTests.java