@Test
    void verifyRequestWithoutCallback() throws Throwable {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();

        val context = new JEEContext(request, response);
        assertFalse(oauthInvalidAuthorizationBuilder.supports(context));

        context.setRequestAttribute(OAuth20Constants.ERROR, OAuth20Constants.INVALID_REQUEST);
        assertTrue(oauthInvalidAuthorizationBuilder.supports(context));
        assertEquals(CasWebflowConstants.VIEW_ID_SERVICE_ERROR,
            oauthInvalidAuthorizationBuilder.build(context).getViewName());

        context.setRequestAttribute(OAuth20Constants.ERROR_WITH_CALLBACK, false);
        assertEquals(CasWebflowConstants.VIEW_ID_SERVICE_ERROR,
            oauthInvalidAuthorizationBuilder.build(context).getViewName());
    }
This is {@link OAuth20InvalidAuthorizationResponseBuilderTests}.

@author Julien Huon
@since 6.4.0
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/response/callback/OAuth20InvalidAuthorizationResponseBuilderTests.java