@Test
    void verifyStopOnSuccess() {
        val attributeSources = new ArrayList<PersonAttributeDao>();
        attributeSources.add(sourceOne);
        attributeSources.add(sourceTwo);

        val impl = new MergingPersonAttributeDaoImpl();
        impl.setStopOnSuccess(true);
        impl.setPersonAttributeDaos(attributeSources);

        val queryMap = new HashMap<String, List<Object>>();
        queryMap.put(QUERY_ATTR, List.of("awp9"));
        val person = impl.getPeopleWithMultivaluedAttributes(queryMap, PersonAttributeDaoFilter.alwaysChoose());
        assertEquals(1, person.size());
    }
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