void () { IdeaWatchdogImpl watchdog = new IdeaWatchdogImpl(); assertTrue(watchdog.isAlive()); assertTrue(watchdog.ping()); assertTrue(watchdog.isAlive()); assertTrue(watchdog.die()); assertFalse(watchdog.die()); // can only be killed once assertFalse(watchdog.isAlive()); // is not alive anymore assertFalse(watchdog.ping()); // cannot be pinged anymore assertFalse(watchdog.isAlive()); // still is not alive }