JsCacheAnnotationServices { String computeCacheKey(Class cls, String methodName, String argpart) { String cachekey = keyMaker.getMd5(cls.getName() + "." + methodName); if (!argpart.isEmpty()) { cachekey += "_" + keyMaker.getMd5(argpart); } logger.debug("CACHEID : {}.{}_{} = {}", cls.getName(), methodName, argpart, cachekey); return cachekey; }  void processJsCacheRemoveAll(); long getJsCacheResultDeadline(JsCacheResult jcr); void processJsCacheRemove(JsCacheRemove jcr, List<String> paramNames, List<String> jsonArgs);  }
@Test public void testComputeCacheKey() { System.out.println("computeCacheKey"); when(keyMaker.getMd5(anyString())).thenReturn("MD5"); String result = instance.computeCacheKey(this.getClass(), "computeCacheKey", ""); assertThat(result).isEqualTo("MD5"); result = instance.computeCacheKey(this.getClass(), "computeCacheKey", "7,\"foo\""); assertThat(result).isEqualTo("MD5_MD5"); }