@Operation(summary= "Create new session and return information")
    @PostMapping(value = "new", consumes = "application/json", produces = "application/json")
    public CreateResponse create(@Valid @RequestBody CreateRequest request) {
        if (request.getDrivingLicences().isEmpty() && request.getTravelDocuments().isEmpty()) {
            throw new BadRequestException("No card information specified");
        }

        final RdaSession session = RdaSession.create(
                request.getReturnUrl(), request.getConfirmId(), request.getClientIpAddress(), timeout
        );
        session.getApp().setDrivingLicences(request.getDrivingLicences());
        session.getApp().setTravelDocuments(request.getTravelDocuments());
        sessionRepo.save(session);

        final CreateResponse response = new CreateResponse();
        response.setUrl(publicUrl);
        response.setSessionId(session.getId());
        response.setConfirmSecret(session.getConfirmSecret());
        response.setExpiration(session.getExpiration());
        return response;
    }
@Test
    public void testCreateRestService() {

        CreateRequest request = new CreateRequest();
        request.setDrivingLicences(ImmutableList.of("dl"));
        request.setTravelDocuments(ImmutableList.of(new MrzInfo("1", "1", "1")));
        request.setReturnUrl("url");
        request.setConfirmId("id");
        request.setClientIpAddress("1");
        CreateResponse response = controller.create(request);
        assertEquals(600, response.getExpiration());
        assertEquals("SSSSSSSSSSSSSSSSSSSSSS", response.getUrl());
        assertNotNull(response.getConfirmSecret());
        assertNotNull(response.getSessionId());

    }