@Test
    void verifySignedAuthnRequest() throws Throwable {
        val service = getSamlRegisteredServiceForTestShib();
        service.setServiceId("signed:authn:service");
        servicesManager.save(service);

        val request = new MockHttpServletRequest();
        request.addParameter(SamlIdPConstants.PROVIDER_ID, service.getServiceId());
        request.addParameter(SamlIdPConstants.TARGET, "relay-state");
        val response = new MockHttpServletResponse();
        val mv = idpInitiatedSamlProfileHandlerController.handleIdPInitiatedSsoRequest(response, request);
        assertEquals(HttpStatus.FOUND, mv.getStatus());
    }
This is {@link SamlIdPInitiatedProfileHandlerControllerTests}.

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