@Operation(summary = "Check validity of a foreign travel document")
    @PostMapping(value = "/check_bv_bsn", consumes = "application/json", produces = "application/json")
    @ResponseBody
    public Map<String, String> checkBvBsn(@Valid @RequestBody TravelDocumentRequest request) throws BvBsnException, SoapValidationException {
        if (request.getDocumentType().equals("I")) {
            request.setDocumentType("ID_CARD");
        } else if (request.getDocumentType().equals("P")) {
            request.setDocumentType("PASSPORT");
        }
        return ImmutableMap.copyOf(bvBsnService.verifyTravelDocument(request));
    }
@Test
    public void checkBvBsnReturnOk() throws BvBsnException, SoapValidationException {
        Map<String,String> serviceResponse = new HashMap<>();
        serviceResponse.put("status", "OK");
        when(BvBsnServiceMock.verifyTravelDocument(any(TravelDocumentRequest.class))).thenReturn(serviceResponse);

        TravelDocumentRequest travelDocumentRequest= new TravelDocumentRequest();
        travelDocumentRequest.setDocumentType("ID_CARD");
        travelDocumentRequest.setDocumentNumber("1");
        Map<String, String> controllerResponse = controller.checkBvBsn(travelDocumentRequest);
        assertEquals("OK", controllerResponse.get("status"));
    }