@@ -0,0 +1,596 @@
+package org.jgroups.blocks;%0A%0Aimport org.testng.Assert;%0Aimport org.testng.annotations.Test;%0A%0Apublic class CacheTest %7B%0A%0A    @Test%0A    public void testCacheGetValue() %7B%0A%0A        Cache%3CString, String%3E cache = new Cache();%0A        cache.put(%22key%22, %22value%22, 60000);%0A        String value = cache.get(%22key%22);%0A%0A        // Both the following assertions fail because Cache.get() compares Value.timeout to System.currentTimeMillis()%0A        // without considering Value.insertion_time%0A        Assert.assertEquals(value, %22value%22);%0A        Assert.assertTrue(cache.getInternalMap().containsKey(%22key%22));%0A    %7D%0A%7D%0A

Test for Cache