@Test
    public void testReturnProfile() {
        UserProfile profile = new CommonProfile();
        final Credentials credentials = new TokenCredentials(TOKEN);
        credentials.setUserProfile(profile);
        val profile2 = (CommonProfile) AuthenticatorProfileCreator.INSTANCE.create(null, credentials).get();
        assertEquals(profile, profile2);
    }
This class tests the {@link AuthenticatorProfileCreator}.

@author Jerome Leleu
@since 1.8.0
pac4j-core/src/test/java/org/pac4j/core/profile/creator/AuthenticatorProfileCreatorTests.java