*/
@Test
public void anonymousUserWithoutSessionIdShouldNotRegister() throws Exception {
MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
MockHttpSession httpSession = spy(new MockHttpSession());
request.setSession(httpSession);
MockFilterChain filterChain = new MockFilterChain();
when(securityService.getCurrentUserUsername()).thenReturn("");
when(httpSession.getId()).thenReturn("");
loggingConfigurationFilter.doFilter(request, response, filterChain);
verify(loggerMdc, times(0)).registerUser(anyString());
verify(loggerMdc, times(0)).unregisterUser();