import com.sun.facelets.FaceletTestCase;
public class SelectTestCase extends FaceletTestCase {
public void testSelectOne() throws Exception {
FaceletFactory ff = FaceletFactory.getInstance();
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);