### Question:
PurgeService { void executePurge(Collection<OfflinePlayer> players, Collection<String> names) { purgeExecutor.executePurge(players, names); } PurgeService(); void runAutoPurge(); void runPurge(CommandSender sender, long until); void purgePlayers(CommandSender sender, Set<String> names, OfflinePlayer[] players);  }### Answer:
@Test public void shouldExecutePurgeActions() { List<String> names = Arrays.asList("alpha", "bravo", "foxtrot"); List<OfflinePlayer> offlinePlayers = Arrays.asList( mock(OfflinePlayer.class), mock(OfflinePlayer.class), mock(OfflinePlayer.class)); purgeService.executePurge(offlinePlayers, names); verify(executor).executePurge(offlinePlayers, names); }