@Test
        void verifyResponseModeForService() throws Throwable {
            val registeredService = getOidcRegisteredService("client");
            servicesManager.save(registeredService);
            val builder = oauthResponseModeFactory.getBuilder(registeredService, OAuth20ResponseModeTypes.FORM_POST_JWT);
            assertNotNull(builder);
            val mv = builder.build(registeredService, "https://apereo.github.io",
                Map.of("code", "123456", "state", "abcdef"));
            assertEquals(CasWebflowConstants.VIEW_ID_POST_RESPONSE, mv.getViewName());
            assertEquals("https://apereo.github.io", mv.getModelMap().get("originalUrl"));
            val params = (Map) mv.getModelMap().get("parameters");
            assertEquals(1, params.size());
            assertTrue(params.containsKey("response"));
        }
This is {@link OidcResponseModeFormPostJwtBuilderTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/response/OidcResponseModeFormPostJwtBuilderTests.java