Facelet f = ff.getFacelet("selectOne.xml");
this.servletRequest.getSession().setAttribute("test", new TestBean());
this.servletRequest.setParameter("testForm:alignment", "10");
FacesContext faces = FacesContext.getCurrentInstance();
UIViewRoot root = new UIViewRoot();
f.apply(faces, root);
UISelectOne one = (UISelectOne) root.findComponent("testForm:alignment");
root.processDecodes(faces);
root.processValidators(faces);
System.out.println(faces.getMessages().hasNext());
}