title: How to handle session variables in unit tests
body: <p>I'd like to know how do I handle session variables in my unit tests.</p>
  
  <p>For example, I have the variable user logged in which is loaded by the session, but the session does not exist at the time of running the tests. </p>
  
  <p>How do I handle these cases without changing the code of the tested class ?
  I'm using Junit.</p>
  
  <p>Thanks everyone,
  Jean</p>