The two issues have been invested and known the reason, while using httpclient lib, and if having not found resources, the following liking response will be generated,
HTTP/1.1 404 Not Found [X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 4.0 Java/Oracle Corporation/1.7), Server: GlassFish Server Open Source Edition 4.0 , Content-Language: , Content-Type: text/html, Date: Wed, 17 Apr 2013 03:27:31 GMT, Content-Length: 1094]
So, this will break original handling (originally, expecting an IOException happen), then, "java.lang.AssertionError: Expected fragment to be not available" happened.
fixing way is to add a status code handling,
HttpResponse response = httpClient.execute(httpRequest);
if(response.getStatusLine().getStatusCode() == 404)
throw new FileNotFoundException("Request Resource is not available.");
Noting, here we must throw FileNotFoundException not IOException in order not to modify T2_Test.