/**
* Test method for {@link org.dspace.services.caching.CachingServiceImpl#instantiateEhCache(java.lang.String, org.dspace.services.model.CacheConfig)}.
*/
@Test
public void testInstantiateEhCache() {
EhcacheCache cache = cachingService.instantiateEhCache("aaronz-eh", null); // make default ehcache
assertNotNull(cache);
assertEquals("aaronz-eh", cache.getName());
assertNotNull(cache.getCache());
assertEquals(0, cache.size());
assertNotNull(cache.getConfig());
assertEquals(cache.getConfig().getCacheScope(), CacheScope.INSTANCE);
EhcacheCache cache2 = cachingService.instantiateEhCache("aaronz-eh", null);
assertNotNull(cache2);
assertEquals(cache2, cache);
//trash the references
cache = cache2 = null;