@Test
    void verifyAccessTokenAsDefault() throws Throwable {
        val registeredService = getRegisteredService(UUID.randomUUID().toString(), "secret", new LinkedHashSet<>());
        registeredService.setJwtAccessToken(false);
        servicesManager.save(registeredService);

        val mv = generateAccessTokenResponseAndGetModelAndView(registeredService);
        val model = mv.getModel();
        assertTrue(model.containsKey(OAuth20Constants.ACCESS_TOKEN));
        assertTrue(model.containsKey(OAuth20Constants.EXPIRES_IN));
        assertFalse(model.containsKey(OAuth20Constants.SCOPE));
        assertTrue(model.containsKey(OAuth20Constants.TOKEN_TYPE));

        assertThrows(ParseException.class, () -> {
            val at = model.get(OAuth20Constants.ACCESS_TOKEN).toString();
            JWTParser.parse(at);
        });
    }
This is {@link OAuth20DefaultAccessTokenResponseGeneratorTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/response/accesstoken/OAuth20DefaultAccessTokenResponseGeneratorTests.java