@Test
    void verifyConvertAttributeValues() {
        var originalMap = CollectionUtils.<String, Object>wrap(PROPERTY, Boolean.FALSE);
        var newMap = CoreAuthenticationUtils.convertAttributeValuesToObjects(originalMap);
        assertEquals(Boolean.FALSE, newMap.get(PROPERTY));

        originalMap = CollectionUtils.wrap(PROPERTY, List.of(Boolean.FALSE));
        newMap = CoreAuthenticationUtils.convertAttributeValuesToObjects(originalMap);
        assertEquals(Boolean.FALSE, newMap.get(PROPERTY));

        val mapValue = new HashMap<>();
        mapValue.put("key", "value");
        originalMap = CollectionUtils.wrap(PROPERTY, List.of(mapValue));
        newMap = CoreAuthenticationUtils.convertAttributeValuesToObjects(originalMap);
        assertTrue(newMap.get(PROPERTY) instanceof Collection);
        assertEquals(mapValue, ((Collection<?>) newMap.get(PROPERTY)).iterator().next());
    }
This is {@link CoreAuthenticationUtilsTests}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/CoreAuthenticationUtilsTests.java