@Test
    public void saveOneProfileNoMulti() {
        profiles.put(CLIENT1, profile1);
        context.setRequestAttribute(Pac4jConstants.USER_PROFILES, profiles);
        profileManager.save(true, profile2, false);
        val profiles = profileManager.getProfiles();
        assertEquals(1, profiles.size());
        assertEquals(profile2, profiles.get(0));
    }
Tests {@link ProfileManager}.

@author Jerome Leleu
@since 1.9.0
pac4j-core/src/test/java/org/pac4j/core/profile/ProfileManagerTests.java