code: public void jumpAndExecute(long duration, TimeUnit timeUnit) {
      long durationInMillis = TimeUnit.MILLISECONDS.convert(duration, timeUnit);
      mQueue.tick(durationInMillis);
      while (!schedulerIsIdle()) {
        runNextPendingCommand();
      }
    }
docs: Jumps to a future time by a given duration. All the commands/tasks scheduled
  for execution during this period will be executed. When this function returns,
  the executor will be idle.
  
  @param duration the duration
  @param timeUnit the time unit of the duration