vdl.buildView(facesContext, root, "testCompositeAttributeMethodExpressionTarget2.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);
SimpleComponent testComponent = (SimpleComponent) compositeComponent2.findComponent("testComponent");
Assert.assertNotNull(testComponent);
Assert.assertNotNull(testComponent.getCustomMethod());
Assert.assertEquals("somethingFunny"+"x", testComponent.getCustomMethod().invoke(facesContext.getELContext(), new Object[]{"x"}));
SimpleComponent testComponentNoTarget = (SimpleComponent) compositeComponent2.findComponent("testComponentNoTarget");
Assert.assertNotNull(testComponentNoTarget);
Assert.assertNotNull(testComponentNoTarget.getCustomMethod());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
Assert.assertEquals("somethingFunny"+"x", testComponentNoTarget.getCustomMethod().invoke(facesContext.getELContext(), new Object[]{"x"}));
compositeComponent.popComponentFromEL(facesContext);
UINamingContainer compositeComponent3 = (UINamingContainer) compositeComponent.findComponent("simpleAttributeMethodExpressionNoTarget");
Assert.assertNotNull(compositeComponent3);
SimpleComponent testComponent3 = (SimpleComponent) compositeComponent3.findComponent("testComponent");
Assert.assertNotNull(testComponent3);
Assert.assertNotNull(testComponent3.getCustomMethod());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
compositeComponent3.pushComponentToEL(facesContext, compositeComponent3);
Assert.assertEquals("somethingFunny"+"x", testComponent3.getCustomMethod().invoke(facesContext.getELContext(), new Object[]{"x"}));
compositeComponent3.popComponentFromEL(facesContext);
compositeComponent.popComponentFromEL(facesContext);
SimpleComponent testComponentNoTarget3 = (SimpleComponent) compositeComponent3.findComponent("testComponentNoTarget");
Assert.assertNotNull(testComponentNoTarget3);
Assert.assertNotNull(testComponentNoTarget3.getCustomMethod());
compositeComponent.pushComponentToEL(facesContext, compositeComponent);
compositeComponent3.pushComponentToEL(facesContext, compositeComponent3);
Assert.assertEquals("somethingFunny"+"x", testComponentNoTarget3.getCustomMethod().invoke(facesContext.getELContext(), new Object[]{"x"}));
compositeComponent3.popComponentFromEL(facesContext);
compositeComponent.popComponentFromEL(facesContext);
}