@Test
    public void testCreateOidcProfile() throws Exception {
        when(configuration.isIncludeAccessTokenClaimsInProfile()).thenReturn(true);
        OidcClient client = new OidcClient(configuration);
        client.setAuthenticator(new OidcAuthenticator(configuration, client));
        ProfileCreator creator = new OidcProfileCreator(configuration, client);
        var webContext = MockWebContext.create();
        var credentials = new OidcCredentials();
        credentials.setAccessToken(new BearerAccessToken(UUID.randomUUID().toString()).toJSONObject());
        JWT idToken = new PlainJWT(idTokenClaims.toJWTClaimsSet());
        credentials.setIdToken(idToken.serialize());
        assertTrue(creator.create(new CallContext(webContext, new MockSessionStore()), credentials).isPresent());
    }
Tests {@link OidcProfileCreatorTests}.

@author Misagh Moayyed
@since 5.4.4
pac4j-oidc/src/test/java/org/pac4j/oidc/profile/creator/OidcProfileCreatorTests.java