### Question:
AbstractAuthenticationEventAuditor { protected Set<String> getTrackingIds(LoginState loginState) { InternalSession session = loginState == null ? null : loginState.getSession(); String sessionContext = session == null ? null : session.getProperty(Constants.AM_CTX_ID); return sessionContext == null ? Collections.<String>emptySet() : singleton(sessionContext); } AbstractAuthenticationEventAuditor(AuditEventPublisher eventPublisher, AuditEventFactory eventFactory);   }### Answer:
@Test public void shouldNotFailGetTrackingId() { LoginState withSessionState = mock(LoginState.class); when(withSessionState.getSession()).thenReturn(mock(InternalSession.class)); auditor.getTrackingIds(null); auditor.getTrackingIds(emptyState); auditor.getTrackingIds(withSessionState); }