private void startWaitAliveThenWaitItLives(final Thread t, final int ms) {
    t.start();
    UTIL.waitFor(2000, t::isAlive);
    // Wait one second.
    Threads.sleep(ms);
    assertTrue("Assert " + t.getName() + " still waiting", t.isAlive());
  }
Test waiting on meat w/ no timeout specified.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestMetaTableLocator.java