@Test
        void verifyResponseModeForDefault() throws Throwable {
            val registeredService = getOidcRegisteredService("client").setJwks(StringUtils.EMPTY);
            servicesManager.save(registeredService);
            val builder = oauthResponseModeFactory.getBuilder(registeredService, OAuth20ResponseModeTypes.QUERY_JWT);
            assertNotNull(builder);
            val mv = builder.build(registeredService, "https://apereo.github.io",
                Map.of("code", "123456", "state", "abcdef"));
            assertInstanceOf(RedirectView.class, mv.getView());
            val view = (RedirectView) mv.getView();
            assertEquals("https://apereo.github.io", view.getUrl());
            assertTrue(mv.getModel().containsKey("response"));
            assertEquals(OAuth20ResponseModeTypes.QUERY_JWT, builder.getResponseMode());
        }
This is {@link OidcResponseModeQueryJwtBuilderTests}.

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