@Operation(summary = "Cancel current session from digid")
    @PostMapping(value = "cancel", consumes = "application/json", produces = "application/json")
    public Map<String, String> cancelRestService(@Valid @RequestBody CancelRequest request) {
        final Optional<EidSession> result = sessionRepo.findById(request.getSessionId());
        if (result.isPresent()) {
            sessionRepo.delete(result.get());
        } else {
            logger.info("Session not found");
        }

        // Result OK
        return ImmutableMap.of("arrivalStatus", "OK");
    }
@Test
    public void testCancelRestService() {
        CancelRequest request = new CancelRequest();

        request.setSessionId("id");
        getSession("id", new EidSession());
        Mockito.doNothing().when(sessionRepo).deleteById("id");

        Map<String, String> response = controller.cancelRestService(request);
        assertEquals("OK", response.get("arrivalStatus"));

    }