for (int i = 0; i < attrs.length; i++)
{
UIComponent component = createComponentToTest();
ClientBehaviorHolder clientBehaviorHolder = (ClientBehaviorHolder) component;
clientBehaviorHolder.addClientBehavior(attrs[i].getClientEvent(), new AjaxBehavior());
try
{
component.encodeAll(facesContext);
String output = outputWriter.toString();
Assert.assertTrue(output.matches(".+ id=\".+\".+"));