@Test
    public void testAdvancedExpirationWithNoExpiredToken() {
        final AccessToken token = new BearerAccessToken("token_value", 3600, new Scope("scope"));
        val profile = new OidcProfile();
        profile.setAccessToken(token);
        profile.setTokenExpirationAdvance(3600); // 1 hour
        assertTrue(profile.isExpired());
    }
The token is not expired but the session will be consider expired if
a long enough token expiration advance is established.
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/OidcProfileTests.java