CacheEventLogger implements CacheEventListener { @Override public void itemPut(String key, Object value) { log.trace("Key [{}] put", key); }  @Override void itemEvicted(String key, Object value); @Override void itemExpired(String key, Object value); @Override void itemPut(String key, Object value); @Override void itemRemoved(String key, Object value); @Override void itemUpdated(String key, Object value);  }
@Test public void testItemPut() { CacheEventLogger logger = new CacheEventLogger(); logger.itemPut("key", new Object()); }