@Operation(summary = "Resolve SAML artifact")
    @PostMapping(value = {"/backchannel/saml/v4/entrance/resolve_artifact", "/backchannel/saml/v4/idp/resolve_artifact"})
    public ResponseEntity resolveArtifact(HttpServletRequest request, HttpServletResponse response) throws SamlParseException {
        try {
            final var artifactResolveRequest = artifactResolveService.startArtifactResolveProcess(request);
            artifactResponseService.generateResponse(response, artifactResolveRequest);
            return new ResponseEntity(HttpStatus.OK);
        } catch (ClassCastException ex) {
            return new ResponseEntity(HttpStatus.BAD_REQUEST);
        }
    }
@Test
    void successfullResolveArtifactTest() throws SamlParseException {
        ArtifactResolveRequest artifactResolveRequest = new ArtifactResolveRequest();
        when(artifactResolveServiceMock.startArtifactResolveProcess(any(HttpServletRequest.class))).thenReturn(artifactResolveRequest);

        artifactController.resolveArtifact(httpServletRequestMock, httpServletResponseMock);

        verify(artifactResolveServiceMock, times(1)).startArtifactResolveProcess(any(HttpServletRequest.class));
        verify(artifactResponseServiceMock, times(1)).generateResponse(any(HttpServletResponse.class), any(ArtifactResolveRequest.class));

    }