boolean result = false;
String value = null;
Phase
renderResponse = new RenderResponsePhase(),
processValidations = new ProcessValidationsPhase(),
applyRequestValues = new ApplyRequestValuesPhase();
UIViewRoot page = Util.getViewHandler(getFacesContext()).createView(getFacesContext(), null);
page.setLocale(Locale.US);
page.setViewId(TEST_URI);
getFacesContext().setViewRoot(page);
// This builds the tree, and usefaces saves it in the session
renderResponse.execute(getFacesContext());
assertTrue(!(getFacesContext().getRenderResponse()) &&
!(getFacesContext().getResponseComplete()));
// This causes the components to be set to valid
applyRequestValues.execute(getFacesContext());
assertTrue(!(getFacesContext().getRenderResponse()) &&
!(getFacesContext().getResponseComplete()));
// process the validations
processValidations.execute(getFacesContext());