@Test
public void testCreateSecurityContextForSessionNoAuthenticatedUser() {

    LOG.info("testCreateSecurityContextForSessionNoAuthenticatedUser");
    Mockito.when(httpServletRequest.getSession(false)).thenReturn(httpSession);
    Mockito.when(httpSession.getAttribute(SESSION_DATA_KEY)).thenReturn(null);
    assertThat(SessionManager.createSecurityContextForSession(httpServletRequest), is(nullValue()));
    verify(httpServletRequest).getSession(false);
    verify(httpSession).getAttribute(SESSION_DATA_KEY);
}