private static CmisObject createCmisObject(final String id) {
return new CmisObjectMock(id);
}
private static Cache createCache(int cacheSize, int ttl) {
Cache cache = new CacheImpl();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put(SessionParameter.CACHE_SIZE_OBJECTS, "" + cacheSize);
parameters.put(SessionParameter.CACHE_TTL_OBJECTS, "" + ttl);
cache.initialize(null, parameters);
return cache;
}