@@ -0,0 +1,1232 @@
+package org.apereo.cas.support.pac4j.config;%0A%0Aimport com.github.scribejava.core.model.OAuth1RequestToken;%0Aimport org.apereo.cas.util.serialization.StringSerializer;%0Aimport org.junit.Test;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport static org.assertj.core.api.Assertions.*;%0A%0A/**%0A * This is Pac4jJacksonTests.%0A *%0A * @author sbearcsiro%0A * @since 5.3.0%0A */%0Apublic class Pac4jJacksonTests %7B%0A%0A    @Test%0A    public void serialiseDeserialiseOAuth1RequestToken() %7B%0A%0A        final StringSerializer%3CMap%3CString, Object%3E%3E sessionStoreCookieSerializer = new Pac4jDelegatedAuthenticationConfiguration().pac4jDelegatedSessionStoreCookieSerializer();%0A%0A        final String key = %22requestToken%22;%0A        final OAuth1RequestToken requestToken = new OAuth1RequestToken(%22token%22, %22secret%22, true, %22token=token&secret=secret%22);%0A%0A        final Map%3CString, Object%3E session = new HashMap%3C%3E();%0A        session.put(key, requestToken);%0A        final String serialisedSession = sessionStoreCookieSerializer.toString(session);%0A%0A        assertThat(session).isNotEmpty();%0A%0A        final Map%3CString, Object%3E deserialisedSession = sessionStoreCookieSerializer.from(serialisedSession);%0A%0A        assertThat(deserialisedSession).isEqualTo(session);%0A    %7D%0A%7D%0A

Add test for Pac4j mixin (#3282)