CacheRepositoryImpl implements CacheRepository { public long getMemoryUsage() { try { net.sf.ehcache.Cache ehcache = (net.sf.ehcache.Cache) this.getNativeCache(); return ehcache.calculateInMemorySize(); } catch (Throwable t) { return -1; } }  EhCacheCacheManager getEhCacheCacheManager(); void setEhCacheCacheManager(EhCacheCacheManager ehCacheCacheManager); String getCacheName(); void setCacheName(String cacheName); Object get(Object key); void put(Object key, Object value); void evict(Object key); Object getNativeCache(); long getMemoryUsage(); long getMemoryStoreSize();  }
@Test public void getMemoryUsage() { }