public void testCsetPageScope1() throws Exception
{
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "csetpagescope1.xhtml");
FastWriter fw = new FastWriter();
ResponseWriter rw = facesContext.getResponseWriter();
rw = rw.cloneWithWriter(fw);
facesContext.setResponseWriter(rw);
root.encodeAll(facesContext);
rw.flush();
String result = fw.toString();
Assert.assertFalse("Output should not contain 'doNotPrintValue'", result.contains("doNotPrintValue"));
}