@Test
        void verifyOperation() throws Exception {
            val mv = mockMvc.perform(get(SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_CALLBACK)
                .contentType(MediaType.APPLICATION_FORM_URLENCODED)
            ).andExpect(status().isBadRequest()).andReturn().getModelAndView();
            assertEquals(SamlIdPConstants.VIEW_ID_SAML_IDP_ERROR, mv.getViewName());
            assertTrue(mv.getModel().containsKey(CasWebflowConstants.ATTRIBUTE_ERROR_ROOT_CAUSE_EXCEPTION));
            val error = mv.getModel().get(CasWebflowConstants.ATTRIBUTE_ERROR_ROOT_CAUSE_EXCEPTION);
            assertInstanceOf(MissingSamlAuthnRequestException.class, error);
        }
This is {@link SSOSamlIdPProfileCallbackHandlerControllerTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPProfileCallbackHandlerControllerTests.java