replay();
Request request = new RequestImpl(sr, CHARSET, sf);
Session session1 = request.getSession(true);
verify();
hsession1.invalidate();
expect(sr.getSession(false)).andReturn(null);
SessionImpl session = new SessionImpl(sr, hsession2);
expect(sf.getSession(true)).andReturn(session);
expect(sf.getSession(true)).andReturn(session);
replay();
session1.invalidate();
Session session2 = request.getSession(true);
assertNotSame(session2, session1);
assertSame(request.getSession(true), session2);
verify();