if (i < price)
sbContent.append("<pur:item><pur:USPrice>" + price + "</pur:USPrice></pur:item>");
else
sbContent.append("<pur:item><pur:USPrice>" + i + "</pur:USPrice></pur:item>");
sExpected = sb.subSequence(0, pos) + sbContent.toString() + sb.subSequence(pos, sb.length());
assertEquals(sExpected, poDoc.xmlText());
assertEquals(price, poDoc.getMinPrice());
int expTotal = (price - 1) * price + (price + 1 + LEN) * (LEN - price) / 2;
assertEquals(expTotal, poDoc.getTotal());