public void testGetCacheKeyGeneratorWithoutMethodCacheKeyGeneratorAndDefault() throws Exception {
final Method fooMethod = Foo.class.getMethod("fooMethod", String.class, String.class);
final CacheResult cacheResultAnnotation = fooMethod.getAnnotation(CacheResult.class);
final CacheDefaults cacheDefaultsAnnotation = Foo.class.getAnnotation(CacheDefaults.class);
final CacheKeyGenerator cacheKeyGenerator = getCacheKeyGenerator(beanManager, cacheResultAnnotation.cacheKeyGenerator(), cacheDefaultsAnnotation);
assertTrue(cacheKeyGenerator instanceof FooCacheKeyGenerator);
}
public void testCacheKeyGeneratorWithMethodCacheKeyGeneratorAndDefault() throws Exception {