if (DISABLE_LOGGING) { logger.setLevel(Level.FATAL); }
try {
DistributedJcsCacheMock.setException(new Exception("dummy"));
c.clear();
fail("Failed to trow exception at clear() of JcsCache instance");
} catch (IllegalStateException ex) {
DistributedJcsCacheMock.setException(null);
assertTrue(c.containsKey("first key"));
assertTrue(c.containsKey("second key"));