CacheEntryEvaluator { public void setFriendlyName(String name) { friendlyName = name; } CacheEntryEvaluator(); void setErrorOnEmptyKey(Boolean bool); Boolean getErrorOnEmptyKey(); void setErrorOnEmptyValue(Boolean bool); Boolean getErrorOnEmptyValue(); void setKeyTranslator(CacheKeyTranslator translator); CacheKeyTranslator getKeyTranslator(); CacheKeyTranslator keyTranslator(); void setValueTranslator(CacheValueTranslator translator); CacheValueTranslator getValueTranslator(); CacheValueTranslator valueTranslator(); String getFriendlyName(); void setFriendlyName(String name); String friendlyName();  }
@Test public void testSetFriendlyName() throws Exception { CacheEntryEvaluator eval = new CacheEntryEvaluator(); assertNull(eval.getFriendlyName()); assertEquals(CacheEntryEvaluator.class.getSimpleName(), eval.friendlyName()); eval.setFriendlyName("XXX"); assertEquals("XXX", eval.getFriendlyName()); assertEquals("XXX", eval.friendlyName()); eval.setFriendlyName(null); assertNull(eval.getFriendlyName()); assertEquals(CacheEntryEvaluator.class.getSimpleName(), eval.friendlyName()); }