root.setViewId("/test");
root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);
facesContext.setViewRoot(root);
vdl.buildView(facesContext, root, "dynPageResourceCleanup1.xhtml");
processor.storeViewStructureMetadata(facesContext, root);
// Try change a view with state checkA=true to checkA=false
facesContext.getAttributes().remove(root); //change set filled view
facesContext.getExternalContext().getRequestMap().put("checkA", Boolean.FALSE);
vdl.buildView(facesContext, root, "dynPageResourceCleanup1.xhtml");