@Test
  public void handleRequestFailureOnDequeueTest() throws Exception {
    unknownRestMethodTest(asyncRequestResponseHandler);
    putRestMethodTest(asyncRequestResponseHandler);
    delayedHandleRequestThatThrowsRestException(asyncRequestResponseHandler);
    delayedHandleRequestThatThrowsRuntimeException(asyncRequestResponseHandler);
  }
Tests that right exceptions are thrown on bad input while a de-queued {@link RestRequest} is being handled.
@throws Exception
ambry-rest/src/test/java/com/github/ambry/rest/AsyncRequestResponseHandlerTest.java