public boolean isScheduled() {
    return (future != null) && !future.isDone();
  }
@Test
  public void isScheduled_doneFuture() {
    pacer.future = DisabledFuture.INSTANCE;
    assertThat(pacer.isScheduled()).isFalse();
  }