// Test that adding another behavior does not register the control twice
field.addBehavior(new DefaultAjaxBehavior());
assertEquals(1, registry.getAjaxTargetControls().size());
// Test that invoking onInit does not register the control twice
field.onInit();
assertEquals(1, registry.getAjaxTargetControls().size());
}
/**
* Check that ControlRegistry.registerInterceptor registers the control and