SimplestObject larger = new SimplestObject(98.0);
SimplestObject equal = new SimplestObject(66.0);
SimplestObject smallerOrEquals = new SimplestObject(3.0);
SimplestObject largerOrEquals = new SimplestObject(3.0);
And one = new And(new GreaterOrEqual(largerOrEquals), new LessOrEqual(smallerOrEquals));
And two = new And(new Different(different), new Greater(larger));
List<SimplestObject> list = persist.getObjects(SimplestObject.class, new Or(one, two, new Equal(equal)));
assertEquals(3, list.size());
list = persist.getObjects(SimplestObject.class, new Or(one, two, new Equal(equal)), new Ascending(different));
assertEquals(3, list.size());