StringBuffer inputBuf = new StringBuffer();
StringBuffer expOut = new StringBuffer();
generateData(new Random(123), inputBuf, expOut, true);
String inputStr = inputBuf.toString();
WstxInputFactory f = getWstxInputFactory();
// Should shrink it to get faster convergence
f.getConfig().setInputBufferLength(17);
f.getConfig().doCoalesceText(coal);
XMLStreamReader2 sr = (XMLStreamReader2) f.createXMLStreamReader(new StringReader(inputStr));
int lastLine = 0;
int lastOffset = 0;
while (sr.next() != XMLStreamConstants.END_DOCUMENT) {