@Bean
        public PersonAttributeDao attributeRepository() {
            val dao = mock(PersonAttributeDao.class);
            val person = mock(PersonAttributes.class);
            when(person.getName()).thenReturn("uid");
            when(person.getAttributes()).thenReturn(REPOSITORY_ATTRIBUTES);
            when(dao.getPerson(any(String.class), any(), any(PersonAttributeDaoFilter.class))).thenReturn(person);
            when(dao.getPeople(any(Map.class), any(PersonAttributeDaoFilter.class))).thenReturn(Set.of(person));
            when(dao.getId()).thenReturn(new String[]{"Stub"});
            return dao;
        }
Handles tests for {@link ExpiringPrincipalAttributesRepositoryTests}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core/src/test/java/org/apereo/cas/authentication/principal/cache/ExpiringPrincipalAttributesRepositoryTests.java