static Stream<Arguments> codeProvider() {
        val tgt = new MockTicketGrantingTicket("casuser");
        val service = RegisteredServiceTestUtils.getService("https://code.oauth.org");
        val authentication = RegisteredServiceTestUtils.getAuthentication();

        return Stream.of(
            Arguments.of(service, authentication,
                tgt, Set.of("Scope1", "Scope2"), "code-challenge", "plain",
                "clientid-code", Map.of(), OAuth20ResponseTypes.CODE, OAuth20GrantTypes.AUTHORIZATION_CODE),
            Arguments.of(service, authentication,
                tgt, Set.of(), null, null,
                "clientid", Map.of(), OAuth20ResponseTypes.ID_TOKEN, OAuth20GrantTypes.CLIENT_CREDENTIALS)
        );
    }
This is {@link OAuth20CodeCompactorTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/ticket/code/OAuth20CodeCompactorTests.java