@Test
    void verifyOperation() throws Throwable {
        val request = new MockHttpServletRequest();
        request.addParameter(SamlIdPConstants.PROVIDER_ID, samlRegisteredService.getServiceId());
        request.addParameter("CName1", "SomeParameter");
        request.addParameter("CName2", "SomeParameter");
        request.addParameter(SamlIdPConstants.SIGNATURE, "some-signature");
        request.addParameter(SamlProtocolConstants.PARAMETER_SAML_REQUEST, "some-saml-request");
        request.addParameter(SamlIdPConstants.TARGET, "relay-state");
        val response = new MockHttpServletResponse();
        val mv = idpInitiatedSamlProfileHandlerController.handleIdPInitiatedSsoRequest(response, request);
        assertEquals(HttpStatus.FOUND, mv.getStatus());
        val view = (RedirectView) mv.getView();
        assertTrue(view.getUrl().contains("CName1="));
        assertTrue(view.getUrl().contains("CName2="));
        assertFalse(view.getUrl().contains("%s=".formatted(SamlProtocolConstants.PARAMETER_SAML_REQUEST)));
        assertFalse(view.getUrl().contains("%s=".formatted(SamlIdPConstants.SIGNATURE)));
    }
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