Cache { public String getCacheName() { return cacheName; } Cache(final String cacheName); V getFromCache(final String key); String getCacheName(); Set<String> getAllKeys(); void clearCache(); boolean contains(final String graphId); void deleteFromCache(final String key); ICache getCache(); static final String ERROR_ADDING_KEY_TO_CACHE_KEY_S; }
@Test public void shouldGetCacheServiceName() { assertEquals("serviceName1", cache.getCacheName()); }