replay();
ClassTransformation ct = createClassTransformation(EventHandlerTarget.class, logger);
OnEvent annotation = ct.getMethodAnnotation(
new TransformMethodSignature("handler"),
OnEvent.class);
// Check that the attributes of the annotation match the expectation.
assertEquals(annotation.value(), "fred");
assertEquals(annotation.component(), "alpha");
verify();
}