FastWriter fw = new FastWriter();
ResponseWriter rw = facesContext.getResponseWriter();
rw = rw.cloneWithWriter(fw);
facesContext.setResponseWriter(rw);
repeat.encodeAll(facesContext);
String content = fw.toString();
// offset="2" size="1" should render only 1 row
int itemIndex1 = content.indexOf("B1");
Assert.assertEquals(-1, itemIndex1);