public boolean awaitEvent(long timeout, TimeUnit timeUnit) throws InterruptedException {
    return eventFired.await(timeout, timeUnit);
  }
Wait for a finite amount of time for event to occur.
@param timeout the length of time to wait for.
@param timeUnit the time unit of timeout.
@return {@code true} if the the event occurred within the {@code timeout}. Otherwise {@code false}.
@throws InterruptedException
ambry-rest/src/test/java/com/github/ambry/rest/AsyncRequestResponseHandlerTest.java