@@ -0,0 +1,992 @@
+package com.spotify.heroic.elasticsearch;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.mockito.Mockito.never;%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport java.util.concurrent.ConcurrentHashMap;%0Aimport java.util.concurrent.ConcurrentMap;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class DisabledRateLimitedCacheTest %7B%0A    private ConcurrentMap%3CString, Boolean%3E cache = new ConcurrentHashMap%3C%3E();%0A%0A    @Mock%0A    Runnable notifier;%0A%0A    @Test%0A    public void testCache() %7B%0A        final DisabledRateLimitedCache%3CString%3E  writeCache = new DisabledRateLimitedCache%3C%3E(cache);%0A        assertTrue(writeCache.acquire(%22key1%22, notifier));%0A        assertFalse(writeCache.acquire(%22key1%22, notifier));%0A        assertTrue(writeCache.acquire(%22key2%22, notifier));%0A%0A        verify(notifier, never()).run();%0A    %7D%0A%0A%0A%7D%0A

add unit test for DisabledRateLimitedCache