SSMCache implements Cache { @Override public String getName() { return cache.getName(); } SSMCache(final com.google.code.ssm.Cache cache, final int expiration, final boolean allowClear, final boolean registerAliases,
            final boolean muteExceptions);  SSMCache(final com.google.code.ssm.Cache cache, final int expiration, final boolean allowClear);  SSMCache(final com.google.code.ssm.Cache cache, final int expiration);  SSMCache(final SSMCache ssmCache, final int expiration); @Override String getName(); @Override Object getNativeCache(); @Override ValueWrapper get(final Object key); @Override @SuppressWarnings("unchecked") T get(final Object key, final Class<T> type); @Override @SuppressWarnings("unchecked") T get(final Object key, final Callable<T> valueLoader); @Override void put(final Object key, final Object value); @Override ValueWrapper putIfAbsent(final Object key, final Object value); @Override void evict(final Object key); @Override void clear();  }
@Test public void getNameShouldExecuteWhenCacheEnabled() { when(cache.isEnabled()).thenReturn(true); ssmCache.getName(); verify(cache).getName(); }
@Test public void getNameExecutedWhenCacheDisabled() { when(cache.isEnabled()).thenReturn(false); ssmCache.getName(); verify(cache).getName(); }