@Test
public void testNeverExpires() {

  SessionData sessionExpired = new SessionData("1", 200, 10);
  RepositoryBackedSession rbsExpired = new RepositoryBackedSession(sessionExpired, manager, factory);
  assertTrue(rbsExpired.isExpired());
  SessionData sessionNotExpired = new SessionData("1", System.currentTimeMillis(), 10000);
  RepositoryBackedSession rbsNotExpired = new RepositoryBackedSession(sessionNotExpired, manager, factory);
  assertFalse(rbsNotExpired.isExpired());
  SessionData sessionNeverExpires = new SessionData("2", 200, 0);
  RepositoryBackedSession rbsNeverExpires = new RepositoryBackedSession(sessionNeverExpires, manager, factory);
  assertFalse(rbsNeverExpires.isExpired());
}