@Test
public void test500(){

    StringHttpClient http = new StringHttpClient(new StatusCodeReplyHttpAsyncEngine());
    try{
        http.request(Requests.get("500")).await();
    }catch (HttpException ex){
        assertEquals(500, ex.getStatusCode());
    }catch (Exception ex){
        fail("An HttpException exception should have been thrown");
    }
}