private MockResponse executeRequest(AbstractJBossManager mgr, boolean secure) throws Exception
{
MockConnector connector = new MockConnector();
connector.setSecure(secure);
MockResponse response = new MockResponse(connector);
mgr.setNewSessionCookie(SESSION_ID, response);
return response;
}