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