LanderMonitor implements AutoCloseable { @Override public void close() throws Exception { executorService.shutdown(); executorService.awaitTermination(5, MINUTES); } LanderMonitor(Clock clock, LanderTaskRunner landerTaskRunner, OffsetDateTime lastRun, boolean jitter);  LanderMonitor(
      Clock clock,
      LanderTaskRunner landerTaskRunner,
      OffsetDateTime lastRun,
      ScheduledExecutorService executorService,
      Random random,
      boolean jitter); void setEnabled(boolean enabled); void establishLandingFrequency(String landingInterval); @Override void close();  }
@Test public void startsAndShutdownsItsExecutionService() throws Exception { underTest = new LanderMonitor(clock, runnable, LoadingBay.EPOCH, true); underTest.close(); }
@Test public void tearDown() throws Exception { underTest.close(); }