@ConditionalOnMissingBean(name = PrincipalResolver.BEAN_NAME_ATTRIBUTE_REPOSITORY)
    @Bean
    public PersonAttributeDao attributeRepository() {
        val attrs = CollectionUtils.wrap(
            "uid", CollectionUtils.wrap("uid"),
            "mail", CollectionUtils.wrap("cas@apereo.org"),
            "eduPersonAffiliation", CollectionUtils.wrap("developer"),
            "groupMembership", CollectionUtils.wrap("adopters"));
        return new StubPersonAttributeDao((Map) attrs);
    }
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