public boolean isScheduled() {
    return (future != null) && !future.isDone();
  }
@Test
  public void isScheduled_inFlight() {
    pacer.future = new CompletableFuture<>();
    assertThat(pacer.isScheduled()).isTrue();
  }