@Test
    public void serializeProfile() {
        val helper = new JavaSerializer();
        val profile = new CommonProfile();
        val s = helper.serializeToString(profile);
        val profile2 = (CommonProfile)helper.deserializeFromString(s);
        assertNotNull(profile2);
    }
This class tests the {@link CommonProfile} class.
@author Jerome Leleu
@since 1.0.0
pac4j-core/src/test/java/org/pac4j/core/profile/CommonProfileTests.java