* This test ensures that HttpExceptions work correctly when immediate.
*/
@Test
public void testHttpException() throws Exception {
final NHttpRequestHandler requestHandler = new SimpleNHttpRequestHandler() {
public ConsumingNHttpEntity entityRequest(
final HttpEntityEnclosingRequest request,
final HttpContext context) {
return null;