}
@Test
public void getNamedCache() throws Exception {
CacheProvider defaultProvider = new EhCacheCacheProvider(
"res://org/apache/shindig/common/cache/ehcache/ehcacheConfig.xml", true, true);
Cache<String, String> cache = defaultProvider.createCache("testcache");
Cache<String, String> cache2 = defaultProvider.createCache("testcache");
Assert.assertNotNull(cache);
Assert.assertEquals(cache, cache2);
Assert.assertNull(cache.getElement("test"));
cache.addElement("test", "value1");
Assert.assertEquals("value1", cache.getElement("test"));