}
public void testCacheKeyGeneratorNameWithoutMethodCacheKeyGeneratorWithoutDefault() throws Exception {
final Method fooMethod = Bar.class.getMethod("fooMethod");
final CacheResult cacheResultAnnotation = fooMethod.getAnnotation(CacheResult.class);
final CacheDefaults cacheDefaultsAnnotation = Bar.class.getAnnotation(CacheDefaults.class);
final CacheKeyGenerator cacheKeyGenerator = getCacheKeyGenerator(beanManager, cacheResultAnnotation.cacheKeyGenerator(), cacheDefaultsAnnotation);
assertTrue(cacheKeyGenerator instanceof DefaultCacheKeyGenerator);
}