facesContext.getExternalContext().getRequestMap().put("company", c);
UIViewRoot root = facesContext.getViewRoot();
vdl.buildView(facesContext, root, "repeat.xml");
FastWriter fw = new FastWriter();
ResponseWriter rw = facesContext.getResponseWriter();
rw = rw.cloneWithWriter(fw);
facesContext.setResponseWriter(rw);
root.encodeAll(facesContext);
String content = fw.toString();
int hrIndex = content.indexOf("<dt>HR</dt>");
Assert.assertNotSame(-1, hrIndex);
int rdIndex = content.indexOf("<dt>RD</dt>", hrIndex);
Assert.assertNotSame(-1, rdIndex);