// store the change
repo1.getAttributesHandler().storeAttributes(mangledItem);
// and evict all that are not "used" for 2 days
Collection<String> evicted = repo1.evictUnusedItems(new ResourceStoreRequest(
RepositoryItemUid.PATH_ROOT,
true), System.currentTimeMillis() - (2 * DAY));
// checks
assertNotNull(evicted);