HttpServerExchange exchange = new HttpServerExchange(null);
SessionManager<LocalSessionContext, Batch> manager = mock(SessionManager.class);
Batcher<Batch> batcher = mock(Batcher.class);
BatchContext context = mock(BatchContext.class);
SessionListener listener = mock(SessionListener.class);
SessionListeners listeners = new SessionListeners();
listeners.addSessionListener(listener);
String sessionId = "session";
when(this.manager.getSessionListeners()).thenReturn(listeners);
when(this.session.getId()).thenReturn(sessionId);
when(this.manager.getSessionManager()).thenReturn(manager);