assertEquals(HttpSessionEvents.Event.CREATED, createdEvent.getType());
HttpSessionEvents.desactivate();
//
HttpSessionEvents.activate();
session.invalidate();
events = HttpSessionEvents.getEvents();
assertEquals(1, events.size());
HttpSessionEvents.Event destroyedEvent = (HttpSessionEvents.Event)events.get(0);
assertEquals(sessionId, destroyedEvent.getSessionId());
assertEquals(HttpSessionEvents.Event.DESTROYED, destroyedEvent.getType());