}
private MockResponse executeRequest(SessionManager mgr, boolean secure) throws Exception {
Connector connector = new Connector("http");
connector.setSecure(secure);
MockResponse response = new MockResponse(connector);
mgr.setNewSessionCookie(SESSION_ID, response);
return response;
}