@Bean
            public AttributeDefinitionStore attributeDefinitionStore(
                final CasConfigurationProperties casProperties) throws Exception {
                val resource = casProperties.getAuthn().getAttributeRepository()
                    .getAttributeDefinitionStore().getJson().getLocation();
                val store = new DefaultAttributeDefinitionStore(resource);
                store.setScope(casProperties.getServer().getScope());
                return store;
            }
This is {@link BasePrincipalAttributeRepositoryTests}.

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