ClassAnnotationEnhancementWorker classWorker = newMock(ClassAnnotationEnhancementWorker.class);
Throwable t = new RuntimeException("Simulated failure.");
DescribedLocation location = newClassLocation(DeprecatedBean.class, Deprecated.class);
classWorker.performEnhancement(op, spec, DeprecatedBean.class, location);
expectLastCall().andThrow(t);
log.error("An error occured processing annotation @java.lang.Deprecated() of "