public void testViewTag() {
boolean result = false;
String value = null;
Locale expectedLocale = new Locale("ps", "PS");
Phase renderResponse = new RenderResponsePhase();
UIViewRoot page = Util.getViewHandler(getFacesContext()).createView(getFacesContext(), null);
page.setId("root");
page.setLocale(Locale.US);
page.setViewId(TEST_URI);
page.setLocale(Locale.CANADA_FRENCH);
getFacesContext().setViewRoot(page);
Config.set((ServletRequest)
getFacesContext().getExternalContext().getRequest(),
Config.FMT_LOCALE, Locale.CANADA_FRENCH);
try {
renderResponse.execute(getFacesContext());
} catch (FacesException fe) {
System.out.println(fe.getMessage());
if (null != fe.getCause()) {
fe.getCause().printStackTrace();
} else {