@Test
void loadSession() {

    when(sessionManager.load(any(), any())).thenReturn(new SessionImpl("localhost"));
    Session session = handler.loadSession(null, null);
    assertThat(session).isInstanceOf(ReadOnlySession.class);
    when(sessionManager.load(any(), any())).thenReturn(null);
    session = handler.loadSession(null, null);
    assertThat(session).isNull();
}