}
public void testSetterIsClaimed()
{
Location l = newLocation();
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",
l);
op.claimReadonlyProperty("likeGetter");
replay();
new MessageAnnotationWorker().performEnhancement(op, spec, method, l);