assertFalse(worker.canEnhance(findMethod(AnnotatedPage.class, "getPersistentProperty")));
worker.peformEnhancement(op, spec, m, resource);
verify();
ComponentEventProperty property = spec.getComponentEvents("email");
assertNotNull(property);
List listeners = property.getEventListeners("onClick");
assertNotNull(listeners);
assertEquals(1, listeners.size());
property = spec.getElementEvents("foo");
assertNotNull(property);
listeners = property.getEventListeners("onClick");
assertNotNull(listeners);
assertEquals(1, listeners.size());
assert !((EventBoundListener)listeners.get(0)).shouldFocusForm();
assert ((EventBoundListener)listeners.get(0)).isAutoSubmit();