@Test
    public void testAddAttributeDuplicateValues() {
        UserProfile userProfile = new CommonProfile(true);
        userProfile.addAttribute(KEY, List.of(VALUE));
        userProfile.addAttribute(KEY, List.of(VALUE));
        assertEquals(1, userProfile.getAttributes().size());
        assertEquals(Arrays.asList(VALUE), userProfile.getAttribute(KEY));
    }
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