@Test
public void checkClose() throws Exception {

  ScheduledSupplier<String> supplier = new ScheduledSupplier<>(delegate, executor, 1, SECONDS);
  supplier.close();
  verify(executor).shutdownNow();
  verify(executor).awaitTermination(10, SECONDS);
}