@Test(expected = SSMCache.ValueRetrievalException.class)
public void getWithValueLoaderShouldWrapException() throws TimeoutException, CacheException {

    String key = "someCacheKey";
    when(cache.isEnabled()).thenReturn(false);
   
    ssmCache.get(key, new Callable<Object>() {
        @Override
        public Object call() throws Exception {
            throw new Exception("some exception");
        }
    });
}