### Question:
AntiBotService implements SettingsDependent { public AntiBotStatus getAntiBotStatus() { return antiBotStatus; } @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 public void shouldStartListenerOnStartup() { assertThat(antiBotService.getAntiBotStatus(), equalTo(AntiBotService.AntiBotStatus.LISTENING)); }
@Test public void shouldNotListenForDisabledSetting() { reset(bukkitService); given(settings.getProperty(ProtectionSettings.ENABLE_ANTIBOT)).willReturn(false); AntiBotService antiBotService = new AntiBotService(settings, messages, permissionsManager, bukkitService); assertThat(antiBotService.getAntiBotStatus(), equalTo(AntiBotService.AntiBotStatus.DISABLED)); verifyZeroInteractions(bukkitService); }