vdl.buildView(facesContext, root, "ui_repeat_offset.xhtml");
UIRepeat repeat = (UIRepeat) root.findComponent("form:repeat0_7");
Assert.assertNotNull(repeat);
FastWriter fw = new FastWriter();
ResponseWriter rw = facesContext.getResponseWriter();
rw = rw.cloneWithWriter(fw);
facesContext.setResponseWriter(rw);
repeat.encodeAll(facesContext);
String content = fw.toString();
int itemIndex1 = content.indexOf("B1");
Assert.assertNotSame(-1, itemIndex1);
int itemIndex2 = content.indexOf("B2", itemIndex1);
Assert.assertNotSame(-1, itemIndex2);