@Test
public void getWithValueLoaderNotExecutedWhenCacheDisabled() throws TimeoutException, CacheException {

    String key = "someCacheKey";
    when(cache.isEnabled()).thenReturn(false);
    final Object expectedResult = new Object();
    final Object result = ssmCache.get(key, new Callable<Object>() {
        @Override
        public Object call() throws Exception {
            return expectedResult;
        }
    });
    verify(cache, never()).get(anyString(), any(SerializationType.class));
    verify(cache, never()).set(anyString(), anyInt(), any(), any(SerializationType.class));
    verify(cache, never()).setSilently(anyString(), anyInt(), any(), any(SerializationType.class));
    assertEquals(expectedResult, result);
}