@@ -0,0 +1,1060 @@
+import org.hamcrest.CoreMatchers;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class MemCacheStorageTest %7B%0A    MemCacheStorage cache;%0A    Set%3CString%3E testSample;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        cache = new MemCacheStorage();%0A        testSample = new HashSet%3C%3E();%0A        testSample.add(%22dog%22);%0A        testSample.add(%22cat%22);%0A        testSample.add(%22koibito%22);%0A        cache.setData(%22white%22,testSample);%0A    %7D%0A%0A    @Test%0A    public void testGetData() throws Exception %7B%0A        Set%3CString%3E test = cache.getData(%22white%22);%0A        assertThat(test, CoreMatchers.is(testSample));%0A    %7D%0A%0A    @Test%0A    public void testSetData() throws Exception %7B%0A        HashSet%3CString%3E newValue = new HashSet%3C%3E();%0A        newValue.add(%22chistmas%22);%0A        newValue.add(%22wine%22);%0A        newValue.add(%22chocolate%22);%0A%0A        cache.setData(%22white%22,newValue);%0A%0A        assertThat(cache.getData(%22white%22), CoreMatchers.is(CoreMatchers.not(testSample)));%0A    %7D%0A%7D

Test for MemCacheStorage