getFacesContext().getViewRoot().setLocale(Locale.US);
root.getChildren().add(form = new UIForm());
form.getChildren().add(input = new UIInput());
input.setValueBinding("buckaroo", getFacesContext().getApplication()
.createValueBinding("#{TestBean.indexProperties[0]}"));
state = root.processSaveState(getFacesContext());
// synthesize the tree structure
getFacesContext().setViewRoot(
root = Util.getViewHandler(getFacesContext()).createView(
getFacesContext(), null));