connection.storeCacheEntry(entry1);
connection.commit();
Assert.assertEquals(1,asList(connection.listAll()).size());
Assert.assertEquals(0,asList(connection.listExpired()).size());
KiWiCacheEntry entry2 = new KiWiCacheEntry();
entry2.setExpiryDate(new Date(System.currentTimeMillis() + 1000 * 60));
entry2.setLastRetrieved(new Date());
entry2.setUpdateCount(1);