@Operation(summary = "Receive app to app SAML AuthnRequest")
    @PostMapping(value = {"/frontchannel/saml/v4/entrance/request_authentication", "/frontchannel/saml/v4/idp/request_authentication"}, produces = "application/json", consumes = "application/x-www-form-urlencoded", params = "Type")
    @ResponseBody
    public Map<String, Object> requestAuthenticationApp(HttpServletRequest request,
                                                                @RequestParam(name = "Type") String requestType,
                                                                @RequestParam(name = "RelayState") String relayState) throws SamlValidationException, DienstencatalogusException, SharedServiceClientException, ComponentInitializationException, MessageDecodingException, AdException, SamlSessionException {
        validateRequestType(requestType, relayState);
        AuthenticationRequest authenticationRequest = authenticationService.startAuthenticationProcess(request);
        return authenticationAppToAppService.createAuthenticationParameters(relayState, authenticationRequest);
    }
@Test
    public void requestAuthenticationEntranceApp() throws AdException, SamlSessionException, DienstencatalogusException, SharedServiceClientException, SamlValidationException, MessageDecodingException, ComponentInitializationException {
        Map<String, Object> authenticationParameters = new HashMap<>();
        authenticationParameters.put("parameter1", "valueParameter1");

        AuthenticationRequest authenticationRequest = new AuthenticationRequest();
        when(authenticationServiceMock.startAuthenticationProcess(any(HttpServletRequest.class))).thenReturn(authenticationRequest);

        when(authenticationAppToAppServiceMock.createAuthenticationParameters(anyString(), any(AuthenticationRequest.class))).thenReturn(authenticationParameters);

        Map<String, Object> result = authenticationControllerMock.requestAuthenticationApp(request, APP_TO_APP.type, "relayState");

        assertNotNull(result);
        assertEquals(authenticationParameters.size(), result.size());
        verify(authenticationServiceMock, times(1)).startAuthenticationProcess(any(HttpServletRequest.class));
        verify(authenticationAppToAppServiceMock, times(1)).createAuthenticationParameters(anyString(), any(AuthenticationRequest.class));
    }