SystemTimer { public void cancel() { this.cancelled = true; timer.cancel(); removeTimer(this); } SystemTimer(DistributedSystem distributedSystem); @Override String toString(); static int distributedSystemCount(); static void cancelTimers(DistributedSystem system); int timerPurge(); void schedule(SystemTimerTask task, long delay); void schedule(SystemTimerTask task, Date time); void scheduleAtFixedRate(SystemTimerTask task, long delay, long period); void schedule(SystemTimerTask task, long delay, long period); void cancel(); boolean isCancelled();  }
@Test public void cancel() { assertThat(systemTimer.isCancelled()).isFalse(); systemTimer.cancel(); assertThat(systemTimer.isCancelled()).isTrue(); }