@Test
    public void testGoogleProfile() {
        final GoogleOidcProfile googleOidcProfile = new GoogleOidcProfile();
        googleOidcProfile.setTokenExpirationAdvance(-1);

        final Date expiration = Date.from(Instant.now().plusSeconds(3600));
        //googleOidcProfile.addAttribute(OidcProfileDefinition.EXPIRATION, expiration.getTime());
        googleOidcProfile.setExpiration(expiration);

        final String secret = "12345678901234567890123456789012";
        final SignatureConfiguration secretSignatureConfiguration = new SecretSignatureConfiguration(secret);
        final JwtGenerator generator = new JwtGenerator();
        generator.setSignatureConfiguration(secretSignatureConfiguration);
        String token = generator.generate(googleOidcProfile);

        JwtAuthenticator jwtAuthenticator = new JwtAuthenticator();
        jwtAuthenticator.setSignatureConfiguration(secretSignatureConfiguration);

        GoogleOidcProfile userProfile = (GoogleOidcProfile) jwtAuthenticator.validateToken(token);
        assertFalse(userProfile.isExpired());
        assertEquals(userProfile.getExpiration(), expiration);
    }
Test experation based on access token exp date.
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/OidcProfileTests.java