### Question:
ScheduledRunnable implements Runnable, Cancellable { @Override public void cancel() { if (future != null) { future.cancel(false); } }  void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor, long period,
            TimeUnit unit); void scheduleWithFixedDelay(ScheduledExecutorService scheduledExecutor,
            long initialDelay, long period, TimeUnit unit); @Override void run(); @Override void cancel();  }### Answer:
@Test public void testCancelWithNoFuture() { TestScheduledRunnable testScheduledRunnable = new TestScheduledRunnable(); testScheduledRunnable.cancel(); }