### Question:
TeleportPlayerJob extends BukkitRunnable { boolean hasPlayerMoved() { final double MAX_MOVE_TOLERANCE = 1.5; return distance3D(player.getLocation(), originalLocation) > MAX_MOVE_TOLERANCE; } TeleportPlayerJob(Player player, Location location); @Override void run();  }### Answer:
@Test public void testPlayerMove_noMovement_false() { when(player.getLocation()).thenReturn(new Location(world, 0, 0, 0)); assertFalse(job.hasPlayerMoved()); }
@Test public void testPlayerMove_smallMovement_false() { when(player.getLocation()).thenReturn(new Location(world, 0.5, 0.5, 0.5)); assertFalse(job.hasPlayerMoved()); }
@Test public void testPlayerMove_largeMovement_true() { when(player.getLocation()).thenReturn(new Location(world, 5, 1, 3)); assertTrue(job.hasPlayerMoved()); }