@Test
    void verifyStatelessAccessTokenTimeout() {
        val accessToken = getAccessToken();
        when(accessToken.getExpiresIn()).thenReturn(60L);
        when(accessToken.isStateless()).thenReturn(Boolean.TRUE);
        val result = OAuth20TokenGeneratedResult.builder().accessToken(accessToken).build();
        val timeout = OAuth20Utils.getAccessTokenTimeout(result);
        assertTrue(timeout > 0);
        assertNotEquals(accessToken.getExpiresIn(), timeout);
    }
This is {@link OAuth20UtilsTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/util/OAuth20UtilsTests.java