@Test
public void testBufferFast() {

    LOG.info("testBufferFast");
    final RateLimiter limiter = new RateLimiter(100);
    final DateTime start = UTCTime.now();
    for (int i = 0; i < 300; ++i) {
        limiter.limit(() -> {
            // Empty.
        });
    }
    final DateTime end = DateTime.now();
    final long delay = end.toDate().getTime() - start.toDate().getTime();
    LOG.info("Delay is {} msecs", delay);
    Assert.assertTrue(MathUtils.isBetween(delay, 2500, 4000));
}