}
@Test
public void testCacheUpdateCollection(){
for(int i = 0; i < 80; i++){
CacheUpdateCollection cache = new CacheUpdateCollection();
cache.setName("name" + i);
cache.setValue(i);
admin.save(cache);
}
CacheUpdateCollection cache = new CacheUpdateCollection();
long n1 = System.currentTimeMillis();
ArrayList array = admin.obtain(cache).findAll();
long n2 = System.currentTimeMillis();
Assert.assertTrue((n2-n1) > 5);
ArrayList array2 = admin.obtain(cache).findAll();
long n3 = System.currentTimeMillis();
Assert.assertTrue((n3-n2) < 5);
CacheUpdateCollection cache2 = new CacheUpdateCollection();
cache2.setName("name-update");
cache2.setValue(9595);
admin.save(cache2);
long n4 = System.currentTimeMillis();
ArrayList array3 = admin.obtain(cache).findAll();
long n5 = System.currentTimeMillis();