@Test(expected = IllegalStateException.class)
public void clearShouldThrowExceptionWhenNotAllowed() throws TimeoutException, CacheException {

    when(cache.isEnabled()).thenReturn(true);
    ssmCache.clear();
}