int i = 0;
boolean hasNext = true;
int k = 1000;
while (hasNext) {
ScanResult kvList = tpc.proxy().nextK(cookie, k);
for (KeyValue kv : kvList.getResults()) {
assertEquals(Integer.parseInt(new String(kv.getKey().getRow())), i);
i++;
}
hasNext = kvList.isMore();
if (hasNext)
assertEquals(k, kvList.getResults().size());
}
assertEquals(maxInserts, i);
}