}
public void testSetterIsClaimed()
{
EnhancementOperation op = newOp();
IComponentSpecification spec = newSpec();
Method method = findMethod(AnnotatedPage.class, "getLikeGetter");
op.addMethod(
Modifier.PUBLIC,
new MethodSignature(method),
"return getMessages().getMessage(\"like-getter\");");
op.claimProperty("likeGetter");
replayControls();
new MessageAnnotationWorker().performEnhancement(op, spec, method);