Assert.assertEquals("submit", button1.getActionExpression().invoke(facesContext.getELContext(), null));
Assert.assertNotNull(button1.getActionListeners());
Assert.assertEquals(1, button1.getActionListeners().length);
UINamingContainer compositeComponent2 = (UINamingContainer) form.findComponent("actionSource2");
Assert.assertNotNull(compositeComponent2);
UICommand button2 = (UICommand) compositeComponent2.findComponent("button");
Assert.assertNotNull(button2);
//Since the button is outside cc:implementation, by the spec it cannot be taken into account as a valid "targets" value.
Assert.assertEquals("fail", button2.getActionExpression().invoke(facesContext.getELContext(), null));