application.addComponent("javax.faces.ComponentResourceContainer", Container.class.getName());
UIViewRoot root = new UIViewRoot();
UIOutput resource = new UIOutput();
// no target argument should result in target being head
root.addComponentResource(facesContext, resource);
List<UIComponent> components = root.getComponentResources(facesContext, "head");
assertNotNull(components);
assertTrue(components.size() == 1);
assertTrue(components.get(0) == resource);
UIOutput resource2 = new UIOutput();