@Test
    void verifyCaseCanonicalizationMode() throws Throwable {
        val key = "computedAttribute-%s".formatted(RandomUtils.randomAlphabetic(6));
        val defn = DefaultAttributeDefinition.builder()
            .key(key)
            .canonicalizationMode(CaseCanonicalizationMode.UPPER.name())
            .script("groovy { return ['value1', 'value2'] }")
            .build();

        val context = getAttributeDefinitionResolutionContext();

        val values = defn.resolveAttributeValues(context);
        assertTrue(values.contains("VALUE1"));
        assertTrue(values.contains("VALUE2"));
    }
This is {@link DefaultAttributeDefinitionTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/attribute/DefaultAttributeDefinitionTests.java