@Test
    public void testGetOneTwoProfilesFromSession() {
        profiles.put(CLIENT1, profile1);
        profiles.put(CLIENT2, profile2);
        sessionStore.set(context, Pac4jConstants.USER_PROFILES, profiles);
        assertEquals(profile1, profileManager.getProfile().get());
        assertTrue(profileManager.isAuthenticated());
    }
Tests {@link ProfileManager}.

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