@Test
    public void testNoExpirationWithNoExpiredToken() {
        final AccessToken token = new BearerAccessToken("token_value", 3600, new Scope("scope"));
        val profile = new OidcProfile();
        profile.setAccessToken(token);
        profile.setTokenExpirationAdvance(0);
        assertFalse(profile.isExpired());
    }
If the token is not expired, then the session is not considered expired.
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/OidcProfileTests.java