document.field("val", i / 10);
document.field("index", i);
document.save();
}
final List<ODocument> result = databaseDocumentTx.query(new OSQLSynchQuery<ODocument>(
"select from IndexWithLimitAndOffsetClass where val = 1 offset 5 limit 2"));
Assert.assertEquals(result.size(), 2);
for (int i = 0; i < 2; i++) {
final ODocument document = result.get(i);