### Question:
BukkitService implements SettingsDependent { public boolean dispatchCommand(CommandSender sender, String commandLine) { return Bukkit.dispatchCommand(sender, commandLine); } @Inject  BukkitService(AuthMe authMe, Settings settings); int scheduleSyncDelayedTask(Runnable task); int scheduleSyncDelayedTask(Runnable task, long delay); void scheduleSyncTaskFromOptionallyAsyncTask(Runnable task); BukkitTask runTask(Runnable task); BukkitTask runTaskLater(Runnable task, long delay); void runTaskOptionallyAsync(Runnable task); BukkitTask runTaskAsynchronously(Runnable task); BukkitTask runTaskTimerAsynchronously(Runnable task, long delay, long period); BukkitTask runTaskTimer(BukkitRunnable task, long delay, long period); int broadcastMessage(String message); Player getPlayerExact(String name); OfflinePlayer getOfflinePlayer(String name); Set<OfflinePlayer> getBannedPlayers(); OfflinePlayer[] getOfflinePlayers(); @SuppressWarnings("unchecked") Collection<? extends Player> getOnlinePlayers(); void callEvent(Event event); E createAndCallEvent(Function<Boolean, E> eventSupplier); World getWorld(String name); boolean dispatchCommand(CommandSender sender, String commandLine); boolean dispatchConsoleCommand(String commandLine); @Override void reload(Settings settings); void sendBungeeMessage(byte[] bytes); BanEntry banIp(String ip, String reason, Date expires, String source); Optional<Boolean> isBungeeCordConfiguredForSpigot(); static final int TICKS_PER_SECOND; static final int TICKS_PER_MINUTE; }### Answer:
@Test public void shouldDispatchCommand() { CommandSender sender = mock(CommandSender.class); String command = "help test abc"; bukkitService.dispatchCommand(sender, command); verify(server).dispatchCommand(sender, command); }