### Question:
LimboService { public void restoreData(Player player) { String lowerName = player.getName().toLowerCase(); LimboPlayer limbo = entries.remove(lowerName); if (limbo == null) { ConsoleLogger.debug("No LimboPlayer found for `{0}` - cannot restore", lowerName); } else { player.setOp(limbo.isOperator()); settings.getProperty(RESTORE_ALLOW_FLIGHT).restoreAllowFlight(player, limbo); settings.getProperty(RESTORE_FLY_SPEED).restoreFlySpeed(player, limbo); settings.getProperty(RESTORE_WALK_SPEED).restoreWalkSpeed(player, limbo); limbo.clearTasks(); ConsoleLogger.debug("Restored LimboPlayer stats for `{0}`", lowerName); persistence.removeLimboPlayer(player); } authGroupHandler.setGroup(player, limbo, AuthGroupType.LOGGED_IN); } LimboService(); void createLimboPlayer(Player player, boolean isRegistered); LimboPlayer getLimboPlayer(String name); boolean hasLimboPlayer(String name); void restoreData(Player player); void replaceTasksAfterRegistration(Player player); void resetMessageTask(Player player, boolean isRegistered); void muteMessageTask(Player player); void unmuteMessageTask(Player player);  }### Answer:
@Test public void shouldHandleMissingLimboPlayerWhileRestoring() { Player player = newPlayer("Test"); limboService.restoreData(player); verify(player, only()).getName(); verify(authGroupHandler).setGroup(player, null, AuthGroupType.LOGGED_IN); }