@Operation(summary= "Cancel current session from digid")
    @PostMapping(value = "cancel", consumes = "application/json", produces = "application/json")
    public Map<String, String> cancel(@Valid @RequestBody AppRequest request) {
        RdaSession session = null;

        try{
            session = findSession(request, null);
        }catch(NotFoundException notFoundException){
            logger.info("Session not found");
        }

        if (session != null) {
            session.setStatus(Status.CANCELLED);
            sessionRepo.save(session);
        }

        // Result OK
        return ImmutableMap.of("status", "OK");
    }
@Test
    public void testCancelRestService() {
        AppRequest appRequest = new AppRequest();
        appRequest.setSessionId("sessionId");

        RdaSession session = new RdaSession();
        session.setId("sessionId");
        mockSession(session);
        Map<String, String> responseData = controller.cancel(appRequest);
        assertEquals("OK", responseData.get("status"));
        Mockito.verify(sessionRepo, Mockito.times(1)).save(Mockito.isA(RdaSession.class));
    }