@Override
        public Optional<UserProfile> create(final CallContext ctx, final Credentials credentials) {
            final UserProfile profile = new CommonProfile();
            profile.setId("" + generator++);
            return Optional.of(profile);
        }
Tests {@link LocalCachingProfileCreator}.

@author Jerome LELEU
@since 5.7.0
pac4j-core/src/test/java/org/pac4j/core/profile/creator/LocalCachingProfileCreatorTests.java