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

        val failingDao = mock(PersonAttributeDao.class);
        when(failingDao.getPeopleWithMultivaluedAttributes(any(), any(), any()))
            .thenThrow(new UnauthorizedAuthenticationException("Failed"));
        
        attributeSources.add(failingDao);

        val impl = new MergingPersonAttributeDaoImpl();
        impl.setPersonAttributeDaos(attributeSources);
        impl.setRecoverExceptions(false);

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

        assertThrows(UnauthorizedAuthenticationException.class,
            () -> impl.getPeopleWithMultivaluedAttributes(queryMap));
    }
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