FacesContext faces = FacesContext.getCurrentInstance();
FaceletFactory f = FaceletFactory.getInstance();
Facelet at = f.getFacelet("convertNumber.xml");
UIViewRoot root = faces.getViewRoot();
at.apply(faces, root);
UIOutput out1 = (UIOutput) root.findComponent("out1");
UIOutput out2 = (UIOutput) root.findComponent("out2");
UIOutput out3 = (UIOutput) root.findComponent("out3");
UIOutput out4 = (UIOutput) root.findComponent("out4");
UIOutput out5 = (UIOutput) root.findComponent("out5");
assertNotNull("out1", out1);
assertNotNull("out2", out2);
assertNotNull("out3", out3);
assertNotNull("out4", out4);