@ConditionalOnMissingBean(name = AttributeDefinitionStore.BEAN_NAME)
    @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 CasPersonDirectoryTestConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-person-directory-core/src/test/java/org/apereo/cas/config/CasPersonDirectoryTestConfiguration.java