@Operation(summary = "Receive SAML AuthnRequest")
    @PostMapping(value = {"/frontchannel/saml/v4/entrance/request_authentication", "/frontchannel/saml/v4/idp/request_authentication"})
    public RedirectView requestAuthenticationService(HttpServletRequest request) throws SamlValidationException, SharedServiceClientException, DienstencatalogusException, UnsupportedEncodingException, ComponentInitializationException, MessageDecodingException, SamlSessionException, SamlParseException {
        logger.info("Receive SAML AuthnRequest");
        if (request.getParameter("SAMLRequest") != null) {
            AuthenticationRequest authenticationRequest = authenticationService.startAuthenticationProcess(request);
            return new RedirectView(authenticationRequest.getProtocolType().equals(ProtocolType.SAML_ROUTERINGSDIENST) ?
                    authenticationIdpService.redirectWithCorrectAttributesForAd(request, authenticationRequest) :
                    authenticationEntranceService.redirectWithCorrectAttributesForAd(request, authenticationRequest)
                    );
        } else {
            RedirectView redirectView = new RedirectView("/saml/v4/idp/redirect_with_artifact");
            redirectView.setStatusCode(HttpStatus.BAD_REQUEST);
            return redirectView;
        }
    }
@Test
    public void failedRequestAuthenticationEntranceServiceTest() throws UnsupportedEncodingException, SamlSessionException, DienstencatalogusException, SharedServiceClientException, SamlValidationException, MessageDecodingException, ComponentInitializationException, SamlParseException {
        RedirectView result = authenticationControllerMock.requestAuthenticationService(request);

        assertNotNull(result);
        verify(authenticationEntranceServiceMock, times(0)).startAuthenticationProcess(any(HttpServletRequest.class));
        verify(authenticationEntranceServiceMock, times(0)).redirectWithCorrectAttributesForAd(any(HttpServletRequest.class), any(AuthenticationRequest.class));
    }