Method put = Cache.class.getMethod("put", new Class[]{Element.class});
setUpCacheAsMockObject(put);
IllegalStateException expected = new IllegalStateException();
String objectToCache = "Luke";
Element element = new Element(KEY, objectToCache);
cache.put(element);
cacheControl.setMatcher(new ElementMatcher());
cacheControl.setThrowable(expected);
cacheControl.replay();