@@ -0,0 +1,1125 @@
+import org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class SqliteCacheStorageTest %7B%0A%0A    private SqliteCacheStorage cache;%0A%0A    private Set%3CString%3E TEST_DATA = new HashSet%3C%3E();%0A    private String TEST_KEY = %22wikifinders%22;%0A    private String TEST_DB = %22tests.db%22;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        cache = new SqliteCacheStorage(TEST_DB);%0A%0A        TEST_DATA.add(%22dog%22);%0A        TEST_DATA.add(%22cat%22);%0A        TEST_DATA.add(%22koibito%22);%0A%0A    %7D%0A%0A    @After%0A    public void tearDown()%7B%0A%0A        File testfile = new File(TEST_DB);%0A        testfile.delete();%0A    %7D%0A%0A    @Test%0A    public void testHasKey() throws Exception %7B%0A        cache.setData(TEST_KEY, TEST_DATA);%0A        assertTrue(cache.hasKey(TEST_KEY));%0A        assertFalse(cache.hasKey(TEST_KEY+TEST_KEY));%0A    %7D%0A%0A    @Test%0A    public void testGetData() throws Exception %7B%0A        cache.setData(TEST_KEY, TEST_DATA);%0A        assertArrayEquals(cache.getData(TEST_KEY).toArray(), TEST_DATA.toArray());%0A    %7D%0A    %0A%7D

test hasKey, set/getData.