@Test
    void testBasics() {
        val attributeSources = new ArrayList<PersonAttributeDao>();

        attributeSources.add(sourceNull);
        attributeSources.add(sourceOne);
        attributeSources.add(sourceNull);
        attributeSources.add(sourceTwo);

        var impl = new MergingPersonAttributeDaoImpl();
        impl.setPersonAttributeDaos(attributeSources);

        val queryMap = new HashMap<String, List<Object>>();
        queryMap.put(QUERY_ATTR, List.of("awp9"));

        val result = impl.getPeopleWithMultivaluedAttributes(queryMap);
        val attributes = new HashMap<>(oneAndTwo);
        attributes.putAll(queryMap);
        assertEquals(attributes, result.iterator().next().getAttributes());
        assertTrue(impl.getId().length > 0);
    }
Testcase for {@link StubPersonAttributeDao}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/attribute/MergingPersonAttributeDaoImplTests.java