@Test
        void verifyAccessTokenNeverAdded() throws Throwable {
            val registeredService = getRegisteredService(UUID.randomUUID().toString(), "secret", new LinkedHashSet<>());
            registeredService.setAccessTokenExpirationPolicy(new DefaultRegisteredServiceOAuthAccessTokenExpirationPolicy()
                .setMaxTimeToLive("PT0S").setTimeToKill("PT0S"));
            servicesManager.save(registeredService);
            val mv = generateAccessTokenResponseAndGetModelAndView(registeredService);
            assertFalse(mv.getModel().containsKey(OAuth20Constants.ACCESS_TOKEN));
            assertFalse(mv.getModel().containsKey(OAuth20Constants.TOKEN_TYPE));
        }
This is {@link OAuth20DefaultTokenGeneratorTests}.

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