AbfsClientThrottlingAnalyzer { @VisibleForTesting int getSleepDuration() { return sleepDuration; } private  AbfsClientThrottlingAnalyzer();   AbfsClientThrottlingAnalyzer(String name);   AbfsClientThrottlingAnalyzer(String name, int period); void addBytesTransferred(long count, boolean isFailedOperation); void suspendIfNecessary();  }
@Test public void testNoMetricUpdatesThenNoWaiting() { AbfsClientThrottlingAnalyzer analyzer = new AbfsClientThrottlingAnalyzer( "test", ANALYSIS_PERIOD); validate(0, analyzer.getSleepDuration()); sleep(ANALYSIS_PERIOD_PLUS_10_PERCENT); validate(0, analyzer.getSleepDuration()); }