CacheManager { boolean isJsCached(Method nonProxiedMethod) { boolean cached = nonProxiedMethod.isAnnotationPresent(JsCacheResult.class); logger.debug("The result of the method {} should be cached on client side {}.", nonProxiedMethod.getName(), cached); return cached; }  long processCacheAnnotations(Method nonProxiedMethod, List<String> parameters);  }
@Test public void testIsJsCached() throws NoSuchMethodException { System.out.println("isJsCached"); Method method = CacheAnnotedClass.class.getMethod("jsCacheResultAnnotatedMethod"); boolean result = instance.isJsCached(method); assertThat(result).isTrue(); method = CacheAnnotedClass.class.getMethod("nonJsCacheResultAnnotatedMethod"); result = instance.isJsCached(method); assertThat(result).isFalse(); }