@Test
    public void testGetAllTwoProfilesFromSessionAndRequest() {
        profiles.put(CLIENT1, profile1);
        context.setRequestAttribute(Pac4jConstants.USER_PROFILES, profiles);
        Map<String, CommonProfile> profiles2 = new LinkedHashMap<>();
        profiles2.put(CLIENT2, profile2);
        sessionStore.set(context, Pac4jConstants.USER_PROFILES, profiles2);
        assertEquals(profile1, profileManager.getProfiles().get(0));
        assertEquals(profile2, profileManager.getProfiles().get(1));
    }
Tests {@link ProfileManager}.

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