@@ -0,0 +1,830 @@
+package org.arp.javautil.datastore;%0A%0A%0Afinal class BdbStoreTest %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        DataStore%3CString, String%3E store = DataStoreFactory.newCacheStore();%0A//        Store%3CString, String%3E store = StoreFactory.getPermanentStore(%22foo%22);%0A//        Store%3CString, String%3E bar = StoreFactory.getPermanentStore(%22bar%22);%0A%0A        if (store.containsKey(%22foo%22)) %7B%0A            System.out.println(%22Found 'foo': %22 + store.get(%22foo%22));%0A        %7D else %7B%0A            System.out.println(%22Couldn't find 'foo'...adding 'foo'%22);%0A            store.put(%22foo%22, %22FOO%22);%0A        %7D%0A        %0A//        if (bar.containsKey(%22bar%22)) %7B%0A//            System.out.println(%22Found 'bar': %22 + bar.get(%22bar%22));%0A//        %7D else %7B%0A//            bar.put(%22bar%22, %22BAR%22);%0A//        %7D%0A        %0A        store.shutdown();%0A    %7D%0A%7D%0A

Test class for BerkeleyDB implementation of persistent/cache data stores. See PROTEMPA-64 in JIRA.