### Question:
BlueThrottle { public synchronized boolean checkLimit(int need) { if (maxTokens == 0) { return true; } long now = Time.currentElapsedTime(); long diff = now - lastTime; if (diff > fillTime) { int refill = (int) (diff * fillCount / fillTime); tokens = Math.min(tokens + refill, maxTokens); lastTime = now; } if (freezeTime != -1) { if (!checkBlue(now)) { return false; } } if (tokens < need) { return false; } tokens -= need; return true; } BlueThrottle(); synchronized void setMaxTokens(int max); synchronized void setFillTime(int time); synchronized void setFillCount(int count); synchronized void setFreezeTime(int time); synchronized void setDropIncrease(double increase); synchronized void setDropDecrease(double decrease); synchronized void setDecreasePoint(double ratio); synchronized int getMaxTokens(); synchronized int getFillTime(); synchronized int getFillCount(); synchronized int getFreezeTime(); synchronized double getDropIncrease(); synchronized double getDropDecrease(); synchronized double getDecreasePoint(); synchronized double getDropChance(); synchronized int getDeficit(); int getRequiredTokensForGlobal(); int getRequiredTokensForLocal(); int getRequiredTokensForRenew(); boolean isConnectionWeightEnabled(); synchronized boolean checkLimit(int need); synchronized boolean checkBlue(long now); static final String CONNECTION_THROTTLE_TOKENS; static final String CONNECTION_THROTTLE_FILL_TIME; static final String CONNECTION_THROTTLE_FILL_COUNT; static final String CONNECTION_THROTTLE_FREEZE_TIME; static final String CONNECTION_THROTTLE_DROP_INCREASE; static final String CONNECTION_THROTTLE_DROP_DECREASE; static final String CONNECTION_THROTTLE_DECREASE_RATIO; static final String WEIGHED_CONNECTION_THROTTLE; static final String GLOBAL_SESSION_WEIGHT; static final String LOCAL_SESSION_WEIGHT; static final String RENEW_SESSION_WEIGHT; }### Answer:
@Test public void testThrottleDisabled() { BlueThrottle throttler = new BlueThrottle(); assertTrue(throttler.checkLimit(1), "Throttle should be disabled by default"); }