source: class BaseHttpClientTest {
  
      @Test
      public void test404(){
  
target:         StringHttpClient http = new StringHttpClient(new StatusCodeReplyHttpAsyncEngine());
  
          try{
              http.request(Requests.get("404")).await();
          }catch (HttpException ex){
              assertEquals(404, ex.getStatusCode());
          }catch (Exception ex){
              fail("An HttpException exception should have been thrown");
          }
      }
  
  }