@Test
    void verifyCachedEmbeddedScriptOperation() throws Throwable {
        val key = "computedAttribute-%s".formatted(RandomUtils.randomAlphabetic(6));
        val defn = DefaultAttributeDefinition.builder()
            .key(key)
            .script("groovy { return ['hello world'] }")
            .build();
        val context = getAttributeDefinitionResolutionContext();
        var values = defn.resolveAttributeValues(context);
        assertFalse(values.isEmpty());
        values = defn.resolveAttributeValues(context);
        assertFalse(values.isEmpty());
    }
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