private Map<String, List<Object>> getAllReleasedAttributesForCasUser() throws Throwable {
        val person = attributeRepository.getPerson("casuser");
        assertNotNull(person);
        val policy = new ReturnAllAttributeReleasePolicy();
        val releasePolicyContext = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(CoreAuthenticationTestUtils.getRegisteredService())
            .service(CoreAuthenticationTestUtils.getService())
            .applicationContext(applicationContext)
            .principal(CoreAuthenticationTestUtils.getPrincipal(person.getAttributes()))
            .build();
        return policy.getAttributes(releasePolicyContext);
    }
This is {@link DefaultAttributeDefinitionStoreTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/DefaultAttributeDefinitionStoreTests.java