@BeforeEach
    protected void setUp() {
        stubDao = new ComplexPersonAttributeDao();
        val daoBackingMap = new HashMap<String, Map<String, List<Object>>>();

        val user1 = new HashMap<String, List<Object>>();
        user1.put("phone", List.of("777-7777"));
        user1.put("displayName", List.of("Display Name"));
        daoBackingMap.put("edalquist", user1);

        val user2 = new HashMap<String, List<Object>>();
        user2.put("phone", List.of("888-8888"));
        user2.put("displayName", List.of(StringUtils.EMPTY));
        daoBackingMap.put("awp9", user2);

        val user3 = new HashMap<String, List<Object>>();
        user3.put("phone", List.of("666-6666"));
        user3.put("givenName", List.of("Howard"));
        daoBackingMap.put("erider", user3);
        stubDao.setBackingMap(daoBackingMap);
        stubDao.setUsernameAttributeProvider(new SimpleUsernameAttributeProvider(DEFAULT_ATTR));
    }
This is {@link CachingPersonAttributeDaoTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-person-directory-core/src/test/java/org/apereo/cas/persondir/CachingPersonAttributeDaoTests.java