@Operation(summary= "Abort current session from digid")
    @PostMapping(value = "abort", consumes = "application/json", produces = "application/json")
    public Map<String, String> abort(@Valid @RequestBody AppRequest request) {
        RdaSession session = findSession(request, null);
        if (session != null) {
            session.setStatus(Status.ABORTED);
            sessionRepo.save(session);
        } else {
            logger.info("Session not found");
        }
        // Result OK
        return ImmutableMap.of("status", "OK");
   }
@Test
    public void testAbortRestService() {
        AppRequest appRequest = new AppRequest();
        appRequest.setSessionId("sessionId");

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