@Test
public void testLog_noLoggingWhenSessionInfoIsNull() {

    when(userSessionMock.getSessionInfo()).thenReturn(null);
    IUserActivityLogger userActivityLogger = createUserActivityLogger(userSessionMock, false);
    ReturnValue<LoggingObject> returnValue = userActivityLogger.log(defaultLoggingActionMock, this.getClass(), null);
    verify(activityLoggingDaoMock, never()).saveLogObject(returnValue.getValue());
    assertNull("should not log when 'SessionInfo is null' ", returnValue.getValue());
}