Assert.assertNotNull(button1);
Assert.assertNotNull(button1.getActionListeners());
Assert.assertEquals(1, button1.getActionListeners().length);
bean.setActionListener1Called(false);
button1.getActionListeners()[0].processAction(new ActionEvent(button1));
Assert.assertTrue(bean.isActionListener1Called());
UIComponent panelGroup2 = root.findComponent("testGroup2");
Assert.assertNotNull(panelGroup2);
UINamingContainer compositeComponent2 = (UINamingContainer) panelGroup2.getChildren().get(0);
Assert.assertNotNull(compositeComponent2);
UICommand button2 = (UICommand) compositeComponent2.findComponent("testComponent");
Assert.assertNotNull(button2);
Assert.assertNotNull(button2.getActionListeners());
Assert.assertEquals(1, button2.getActionListeners().length);
bean.setActionListener2Called(false);
button2.getActionListeners()[0].processAction(new ActionEvent(button2));
Assert.assertTrue(bean.isActionListener2Called());
}