List<SimplestObject> list = persist.getObjectsMatching(new SimplestObject());
assertEquals(200, list.size());
// select using sorting
SimplestObject orderObject = new SimplestObject();
orderObject.setFoo(0.0);
list = persist.getObjects(SimplestObject.class, new Order(20, 10, new Ascending(orderObject)));
assertEquals(20, list.size());
assertEquals((Double) 10.0, list.get(0).getFoo());
list = persist.getObjects(SimplestObject.class, new Order(45, new Ascending(orderObject)));
assertEquals(45, list.size());
assertEquals((Double) 0.0, list.get(0).getFoo());
persist.close();
}