@Override
  public boolean advanceBy(long amount, TimeUnit unit) {
    return advanceTo(SystemClock.uptimeMillis() + unit.toMillis(amount));
  }
@Test
  public void advanceBy() {
    Runnable runnable = mock(Runnable.class);
    new Handler(getMainLooper()).postDelayed(runnable, 100);
    verify(runnable, times(0)).run();

    assertThat(scheduler.advanceBy(100, TimeUnit.MILLISECONDS)).isTrue();
    verify(runnable, times(1)).run();
  }