SessionConfig config = mock(SessionConfig.class);
<BUG>@SuppressWarnings("unchecked")
Session<Void> session = mock(Session.class);</BUG>
String requestedSessionId = "session.route1";
String sessionId = "session";
<BUG>when(this.manager.getBatcher()).thenReturn(batcher);
when(batcher.startBatch()).thenReturn(true);</BUG>
when(config.findSessionId(exchange)).thenReturn(requestedSessionId);
<BUG>when(this.manager.findSession(sessionId)).thenReturn(session);
</BUG>
IllegalStateException exception = null;

SessionConfig config = mock(SessionConfig.class);
String requestedSessionId = "session.route1";
String sessionId = "session";
when(config.findSessionId(exchange)).thenReturn(requestedSessionId);
when(this.manager.containsSession(sessionId)).thenReturn(true);
IllegalStateException exception = null;
