@Override
    public Metrics getMetrics() {
        return new AtomicRateLimiterMetrics();
    }
@Test
    public void permissionsInFirstCycle() throws Exception {
        setup(Duration.ZERO);

        setTimeOnNanos(CYCLE_IN_NANOS - 10);
        RateLimiter.Metrics metrics = rateLimiter.getMetrics();
        int availablePermissions = metrics.getAvailablePermissions();
        then(availablePermissions).isEqualTo(PERMISSIONS_RER_CYCLE);
    }