public void testAjaxEditableLabel()
{
Page page = tester.getLastRenderedPage();
AjaxEditableLabel<String> ajaxLabel = (AjaxEditableLabel<String>)page.get("ajaxLabel");
AbstractAjaxBehavior labelBehavior = (AbstractAjaxBehavior)ajaxLabel.get("label")
.getBehaviors()
.get(0);
AbstractAjaxBehavior editorBehavior = (AbstractAjaxBehavior)ajaxLabel.get("editor")
.getBehaviors()
.get(0);
// "click" on the label and check for valid visibility
tester.executeBehavior(labelBehavior);