@Test
    void verifyBadCredentials() {
        val request = new MockHttpServletRequest();
        val samlRequest = new SSOSamlIdPPostProfileHandlerEndpoint.SamlRequest("xyz",
            "123", samlRegisteredService.getServiceId(), false);
        val response = new MockHttpServletResponse();
        val entity = endpoint.producePost(request, response, samlRequest);
        assertEquals(HttpStatus.BAD_REQUEST, entity.getStatusCode());
    }
This is {@link SSOSamlIdPPostProfileHandlerEndpointTests}.

@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/SSOSamlIdPPostProfileHandlerEndpointTests.java