### Question:
AntiBotService implements SettingsDependent { public void overrideAntiBotStatus(boolean started) { if (antiBotStatus != AntiBotStatus.DISABLED) { if (started) { startProtection(); } else { stopProtection(); } } } @Inject  AntiBotService(Settings settings, Messages messages, PermissionsManager permissionsManager,
                   BukkitService bukkitService); @Override void reload(Settings settings); AntiBotStatus getAntiBotStatus(); void overrideAntiBotStatus(boolean started); boolean shouldKick(); boolean wasPlayerKicked(String name); void addPlayerKick(String name);  }### Answer:
@Test @SuppressWarnings({"unchecked", "rawtypes"}) public void shouldInformPlayersOnActivation() { List<Player> players = Arrays.asList(mock(Player.class), mock(Player.class)); given(bukkitService.getOnlinePlayers()).willReturn((List) players); given(permissionsManager.hasPermission(players.get(0), AdminPermission.ANTIBOT_MESSAGES)).willReturn(false); given(permissionsManager.hasPermission(players.get(1), AdminPermission.ANTIBOT_MESSAGES)).willReturn(true); antiBotService.overrideAntiBotStatus(true); verify(permissionsManager).hasPermission(players.get(0), AdminPermission.ANTIBOT_MESSAGES); verify(permissionsManager).hasPermission(players.get(1), AdminPermission.ANTIBOT_MESSAGES); verify(messages, only()).send(players.get(1), MessageKey.ANTIBOT_AUTO_ENABLED_MESSAGE); }