@@ -0,0 +1,1062 @@
+/*%0A * Copyright (c) 2008-2015 Maxifier Ltd. All Rights Reserved.%0A */%0Apackage com.maxifier.mxcache.test;%0A%0Aimport com.maxifier.mxcache.Cached;%0Aimport com.maxifier.mxcache.concurrent.ConcurrentCache;%0Aimport org.testng.annotations.Test;%0A%0Aimport javax.annotation.Nullable;%0A%0Aimport static org.testng.Assert.assertEquals;%0Aimport static org.testng.Assert.assertNull;%0A%0A/**%0A * ConcurrentCacheUTest%0A *%0A * @author Alexander Kochurov (alexander.kochurov@maxifier.com) (2015-02-02 11:01)%0A */%0A@Test%0Apublic class ConcurrentCacheUTest %7B%0A    int i = 0;%0A%0A    @Cached%0A    @ConcurrentCache%0A    public String testCache(@Nullable String s) %7B%0A        if (s == null) %7B%0A            return %22test%22;%0A        %7D%0A        if (s.equals(%22test%22)) %7B%0A            return null;%0A        %7D%0A        return s + i;%0A    %7D%0A%0A    public void simpleTest() %7B%0A        i = 0;%0A        assertEquals(testCache(%221%22), %2210%22);%0A        i++;%0A        assertEquals(testCache(%222%22), %2221%22);%0A        assertEquals(testCache(%221%22), %2210%22);%0A%0A        assertEquals(testCache(null), %22test%22);%0A        assertNull(testCache(%22test%22));%0A    %7D%0A%7D

Add unit-test for @ConcurrentCache