{
String baseURLNoAuth = "http://" + getServerHostForURL() +
":" + Integer.getInteger("web.port", 8080) + "/";
HttpClient httpConn = new HttpClient();
GetMethod indexGet = new GetMethod(baseURLNoAuth + "sdtolerate/");
int responseCode = httpConn.executeMethod(indexGet);
String body = indexGet.getResponseBodyAsString();
assertTrue("Get OK(" + responseCode + ")", responseCode == HttpURLConnection.HTTP_OK);
assertTrue("Redirected to login page", body.indexOf("j_security_check") > 0);
HttpState state = httpConn.getState();
Cookie[] cookies = state.getCookies();