public void testSimpleCompositeComponent() throws Exception
{
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "testSimpleComposite.xhtml");
UIComponent panelGroup = root.findComponent("testGroup");
Assert.assertNotNull(panelGroup);
UINamingContainer compositeComponent = (UINamingContainer) panelGroup.getChildren().get(0);
Assert.assertNotNull(compositeComponent);
UIOutput text = (UIOutput) compositeComponent.getFacet(UIComponent.COMPOSITE_FACET_NAME).findComponent("text");
Assert.assertNotNull(text);