### Question:
BlueThrottle { public synchronized void setMaxTokens(int max) { int deficit = maxTokens - tokens; maxTokens = max; tokens = max - deficit; } 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 testNoThrottling() throws Exception { quorumUtil.startAll(); quorumUtil.getPeer(1).peer.getActiveServer().connThrottle().setMaxTokens(0); int connected = connect(10); assertEquals(10, connected); shutdownQuorum(); }