@Operation(summary = "Get single session")
    @GetMapping(value = "/iapi/saml/ad_sessions/{id}", produces = "application/json")
    @ResponseBody
    public AdSession getById(@PathVariable("id") String id) throws AdException {
        return adService.getAdSession(id);
    }
@Test
    public void getSessionById() throws AdException {
        when(adServiceMock.getAdSession(anyString())).thenReturn(adSession);

        AdSession result = sessionController.getById("httpSessionId");

        verify(adServiceMock, times(1)).getAdSession("httpSessionId");
        assertEquals(result.getSessionId(), adSession.getSessionId());
    }