private void start() throws MetaException {
    Deadline.startTimer("test");
    try {
      Thread.sleep(duration);
    } catch (InterruptedException e) {
      failInThread("Odd. Sleeping thread is interrupted.", e);
    }
  }
Test the Deadline class used for long running requests.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestDeadline.java