@Test
    void verifyErrorViewWithRootCause() {
        val view = WebUtils.produceErrorView(new RuntimeException(new AuthenticationException("error")));
        val error = (Exception) view.getModel().get(CasWebflowConstants.ATTRIBUTE_ERROR_ROOT_CAUSE_EXCEPTION);
        assertInstanceOf(AuthenticationException.class, error);
    }
This is {@link WebUtilsTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-web/src/test/java/org/apereo/cas/web/support/WebUtilsTests.java