@Ignore
  @Test
  public void infiniteLoop() {
    // Launch a background non-daemon thread.
    Thread t = new Thread("HangingThread") {
      @Override
      public void run() {
        synchronized (this) {
          while (true) {
          }
        }
      }
    };
    t.start();
    while (true) {
    }
  }
Enable to check if timeout works. Can't enable as it waits 30seconds and expected doesn't do
Exception catching
hbase-common/src/test/java/org/apache/hadoop/hbase/TestTimeout.java