vdl.buildView(facesContext, root, "testCompositeAttributeActionMethodExpressionTarget3.xhtml");
UIComponent panelGroup1 = root.findComponent("testGroup1");
Assert.assertNotNull(panelGroup1);
UINamingContainer compositeComponent = (UINamingContainer) panelGroup1.getChildren().get(0);
Assert.assertNotNull(compositeComponent);
UINamingContainer compositeComponent2 = (UINamingContainer) compositeComponent.findComponent("simpleAttributeMethodExpressionTarget");
Assert.assertNotNull(compositeComponent2);
UICommand testComponent = (UICommand) compositeComponent2.findComponent("testComponent");
Assert.assertNotNull(testComponent);
Assert.assertNotNull(testComponent.getActionExpression());
Assert.assertEquals(bean.doSomeAction(), testComponent.getActionExpression().invoke(facesContext.getELContext(), null));
UICommand testComponentNoTarget = (UICommand) compositeComponent2.findComponent("testComponentNoTarget");
Assert.assertNotNull(testComponentNoTarget);
Assert.assertNotNull(testComponentNoTarget.getActionExpression());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
compositeComponent2.pushComponentToEL(facesContext, compositeComponent2);
Assert.assertEquals(bean.doSomeAction(), testComponentNoTarget.getActionExpression().invoke(facesContext.getELContext(), null));
compositeComponent2.popComponentFromEL(facesContext);
compositeComponent.popComponentFromEL(facesContext);
UINamingContainer compositeComponent3 = (UINamingContainer) compositeComponent.findComponent("simpleAttributeMethodExpressionNoTarget");
Assert.assertNotNull(compositeComponent3);
UICommand testComponent3 = (UICommand) compositeComponent3.findComponent("testComponent");
Assert.assertNotNull(testComponent3);
Assert.assertNotNull(testComponent3.getActionExpression());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
compositeComponent3.pushComponentToEL(facesContext, compositeComponent3);
Assert.assertEquals(bean.doSomeAction(), testComponent3.getActionExpression().invoke(facesContext.getELContext(), null));
compositeComponent3.popComponentFromEL(facesContext);
compositeComponent.popComponentFromEL(facesContext);
UICommand testComponentNoTarget3 = (UICommand) compositeComponent3.findComponent("testComponentNoTarget");
Assert.assertNotNull(testComponentNoTarget3);
Assert.assertNotNull(testComponentNoTarget3.getActionExpression());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
compositeComponent3.pushComponentToEL(facesContext, compositeComponent3);
Assert.assertEquals(bean.doSomeAction(), testComponentNoTarget3.getActionExpression().invoke(facesContext.getELContext(), null));
compositeComponent3.popComponentFromEL(facesContext);
compositeComponent.popComponentFromEL(facesContext);
}