}
return pipeline.getFirst();
}
public static Request setupRequest(Manager manager, String sessionId) {
MockRequest request = new MockRequest(manager);
request.setRequestedSessionId(sessionId);
Response response = new Response();
try {
response.setConnector(new Connector("http"));
response.setCoyoteResponse(new org.apache.coyote.Response());
// org.apache.coyote.Response coyoteResponse = new org.apache.coyote.Response();
// coyoteResponse.setOutputBuffer(new InternalOutputBuffer(coyoteResponse));
// response.setCoyoteResponse(coyoteResponse);
// response.setConnector(new Connector("http"));
} catch (Exception e) {
throw new IllegalStateException(e);
}
request.setResponse(response);
return request;
}