### Question:
ChatCooldowns { public void removePlayer(UUID player) { cooldowns.remove(player); }  Optional<Integer> checkCooldown(UUID player); void removePlayer(UUID player); void onChat(UUID uuid);  }### Answer:
@Test public void removePlayer() { ChatCooldowns chatCooldowns = new ChatCooldowns(100); UUID uuid = UUID.randomUUID(); chatCooldowns.onChat(uuid); assertTrue(chatCooldowns.checkCooldown(uuid).isPresent()); chatCooldowns.removePlayer(uuid); assertFalse(chatCooldowns.checkCooldown(uuid).isPresent()); }