@Bean
            public PersonAttributeDao attributeRepository() {
                val attributes = new HashMap<String, List<Object>>();
                attributes.put("values", Arrays.asList(new Object[]{"v1", "v2", "v3"}));
                attributes.put("cn", Arrays.asList(new Object[]{"commonName"}));
                attributes.put("username", Arrays.asList(new Object[]{"uid"}));

                val person = mock(PersonAttributes.class);
                when(person.getName()).thenReturn("uid");
                when(person.getAttributes()).thenReturn(attributes);

                val stub = new StubPersonAttributeDao(attributes);
                stub.setId("SampleStubRepository");

                val dao = new MergingPersonAttributeDaoImpl();
                dao.setPersonAttributeDaos(List.of(stub));
                return dao;
            }
Attribute filtering policy tests.

@author Misagh Moayyed
@since 4.0.0
core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/RegisteredServiceAttributeReleasePolicyTests.java