@Test
    void verifyOpsErrorsAndResultMsg() {
        val ex = new UnauthorizedAuthenticationException("message",
            Map.of("error", new RuntimeException()),
            Map.of("result", mock(AuthenticationHandlerExecutionResult.class)));
        assertFalse(ex.getHandlerErrors().isEmpty());
        assertFalse(ex.getHandlerSuccesses().isEmpty());
        assertNotNull(ex.getMessage());
    }
This is {@link UnauthorizedAuthenticationExceptionTests}.

@author Misagh Moayyed
@since 6.2.0
api/cas-server-core-api-authentication/src/test/java/org/apereo/cas/authentication/adaptive/UnauthorizedAuthenticationExceptionTests.java