### Question:
TeleportPlayerJob extends BukkitRunnable { boolean hasPlayerTakenDamage() { final double MAX_DAMAGE_TOLERANCE = 2; return Math.abs(originalHealth - player.getHealth()) > MAX_DAMAGE_TOLERANCE; } TeleportPlayerJob(Player player, Location location); @Override void run();  }### Answer:
@Test public void testPlayerDamage_noDamage_false() { when(player.getHealth()).thenReturn(20.0); assertFalse(job.hasPlayerTakenDamage()); }
@Test public void testPlayerDamage_slightDamage_false() { when(player.getHealth()).thenReturn(19.5); assertFalse(job.hasPlayerTakenDamage()); }
@Test public void testPlayerDamage_largeDamage_true() { when(player.getHealth()).thenReturn(14.0); assertTrue(job.hasPlayerTakenDamage()); }