@Operation(summary = "Get single session")
    @PutMapping(value = "/iapi/saml/ad_sessions/{id}", produces = "application/json")
    @ResponseBody
    public AdSession update(@PathVariable("id") String id, @RequestBody Map<String, Object> body) throws AdException, AdValidationException {
        AdSession adSession = adService.getAdSession(id);
        return adService.updateAdSession(adSession, body);
    }
@Test
    public void updateSession() throws AdException, AdValidationException {
        AdSession adSession2 = new AdSession();
        adSession2.setAuthenticationLevel(20);

        HashMap<String, Object> body = new HashMap<>();
        body.put("authentication_level", 20);
        body.put("authentication_status", "anyString");
        body.put("bsn", "anyString");

        when(adServiceMock.getAdSession(anyString())).thenReturn(adSession);
        when(adServiceMock.updateAdSession(any(AdSession.class), any(HashMap.class))).thenReturn(adSession2);

        AdSession result = sessionController.update("httpSessionId", body);

        verify(adServiceMock, times(1)).getAdSession(anyString());
        assertEquals(result.getAuthenticationLevel(), adSession2.getAuthenticationLevel());

    }