assertTrue(components.get(0) == resource);
UIOutput resource2 = new UIOutput();
root.addComponentResource(facesContext, resource2);
assertTrue(components.size() == 2);
assertTrue(components.get(1) == resource2);
root.addComponentResource(facesContext, resource2, "form");
components = root.getComponentResources(facesContext, "form");
assertTrue(components.size() == 1);
root.addComponentResource(facesContext, resource2, "body");
components = root.getComponentResources(facesContext, "body");
assertTrue(components.size() == 1);