### Question:
AuthMeCommand implements ExecutableCommand { @Override public void executeCommand(CommandSender sender, List<String> arguments) { sender.sendMessage(ChatColor.GREEN + "This server is running " + AuthMe.getPluginName() + " v" + AuthMe.getPluginVersion() + " b" + AuthMe.getPluginBuildNumber()+ "! " + ChatColor.RED + "<3"); sender.sendMessage(ChatColor.YELLOW + "Use the command " + ChatColor.GOLD + "/authme help" + ChatColor.YELLOW + " to view help."); sender.sendMessage(ChatColor.YELLOW + "Use the command " + ChatColor.GOLD + "/authme about" + ChatColor.YELLOW + " to view about."); }  @Override void executeCommand(CommandSender sender, List<String> arguments);  }### Answer:
@Test public void shouldDisplayInformation() { ExecutableCommand command = new AuthMeCommand(); CommandSender sender = mock(CommandSender.class); command.executeCommand(sender, Collections.emptyList()); ArgumentCaptor<String> messagesCaptor = ArgumentCaptor.forClass(String.class); verify(sender, times(3)).sendMessage(messagesCaptor.capture()); assertThat(messagesCaptor.getAllValues().get(1), containsString("/authme help")); assertThat(messagesCaptor.getAllValues().get(2), containsString("/authme about")); }