@Test
public void testDelay() throws InterruptedException {

  final Task<Void> delayed = Task.delay(200);
  Thread.sleep(50);
  assertFalse(delayed.isCompleted());
  Thread.sleep(200);
  assertTrue(delayed.isCompleted());
  assertFalse(delayed.isFaulted());
  assertFalse(delayed.isCancelled());
}