@Test
    void verifyOperation() throws Throwable {
        val id = UUID.randomUUID().toString();
        val mockRequest = getHttpRequestForEndpoint(OidcConstants.PUSHED_AUTHORIZE_URL);
        mockRequest.setMethod(HttpMethod.GET.name());
        mockRequest.setParameter(OAuth20Constants.CLIENT_ID, id);
        mockRequest.setParameter(OAuth20Constants.REDIRECT_URI, "https://oauth.example.org/");
        mockRequest.setParameter(OAuth20Constants.RESPONSE_TYPE, OAuth20ResponseTypes.TOKEN.name().toLowerCase(Locale.ENGLISH));
        mockRequest.setContextPath(StringUtils.EMPTY);
        val mockResponse = new MockHttpServletResponse();

        val oauthContext = oidcPushedAuthorizeController.getConfigurationContext();
        oauthContext.getCasProperties().getAuthn().getOauth().getSessionReplication().getCookie().setAutoConfigureCookiePath(false);
        oauthContext.getOauthDistributedSessionCookieGenerator().setCookiePath(StringUtils.EMPTY);

        val service = getOidcRegisteredService(id);
        service.setBypassApprovalPrompt(true);
        servicesManager.save(service);

        val profile = new CasProfile();
        profile.setId("casuser");

        val sessionStore = oidcPushedAuthorizeController.getConfigurationContext().getSessionStore();
        val context = new JEEContext(mockRequest, mockResponse);
        val ticket = new MockTicketGrantingTicket("casuser");
        oidcPushedAuthorizeController.getConfigurationContext().getTicketRegistry().addTicket(ticket);
        sessionStore.set(context, WebUtils.PARAMETER_TICKET_GRANTING_TICKET_ID, ticket.getId());
        sessionStore.set(context, Pac4jConstants.USER_PROFILES,
            CollectionUtils.wrapLinkedHashMap(profile.getClientName(), profile));

        val modelAndView = oidcPushedAuthorizeController.handleRequestPost(mockRequest, mockResponse);
        assertNotNull(modelAndView);
    }
This is {@link OidcPushedAuthorizeEndpointControllerTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/controllers/authorize/OidcPushedAuthorizeEndpointControllerTests.java