@Operation(summary = "Redirect transactionId from BVD")
    @GetMapping(value = {"/frontchannel/saml/v4/return_from_bvd", "/frontchannel/saml/v4/idp/return_from_bvd"})
    public RedirectView redirectFromBvd(@RequestParam(value = "transactionId") String transactionId, @RequestParam(value = "status", required = false) BvdStatus status, HttpServletRequest request) throws SamlSessionException, UnsupportedEncodingException {
        logger.info("Receive redirect with transactionId from BVD");
        return new RedirectView(assertionConsumerServiceUrlService.generateRedirectUrl(null, transactionId, request.getRequestedSessionId(), status));
    }
@Test
    void redirectFromBvdTest() throws SamlSessionException, UnsupportedEncodingException {
        String redirectUrl = "redirectUrl";
        httpServletRequestMock.setRequestedSessionId("sessionId");
        when(assertionConsumerServiceUrlServiceMock.generateRedirectUrl(any(), anyString(), anyString(), any(BvdStatus.class))).thenReturn(redirectUrl);

        RedirectView result = artifactController.redirectFromBvd("transactionId", OK, httpServletRequestMock);

        assertNotNull(result);
        assertEquals(redirectUrl, result.getUrl());
        verify(assertionConsumerServiceUrlServiceMock, times(1)).generateRedirectUrl(any(), anyString(), anyString(), any(BvdStatus.class));
    }