protected HttpSession storeProfileIntoSession(final HttpServletRequest request, final CommonProfile profile) {
        val session = request.getSession(true);
        assertNotNull(session);
        session.setAttribute("OauthOidcServerSupport%s".formatted(Pac4jConstants.USER_PROFILES),
            CollectionUtils.wrapLinkedHashMap(profile.getClientName(), profile));
        return session;
    }
This is {@link AbstractOAuth20Tests}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/AbstractOAuth20Tests.java