Page pred test2

While making a stabilizer test from,  Queries and Indexing,  I found some infinite loop problems using paging predicate.  

I am adding some junit tests to clarify paging predicate behavior, when the underlying data is being change while the paging predicate is used.


using this type of Predicate
Predicate  pred = Predicates.lessEqual("id", 5);

gives normal output, e.g
Employee{id=5, name='ccc', age=19, active=true, salary=620.2852256086421}
Employee{id=4, name='aaa', age=46, active=false, salary=362.04341594708376}
Employee{id=3, name='bbb', age=13, active=false, salary=961.9218973953563}
Employee{id=1, name='aaa', age=63, active=true, salary=221.87838402888582}
Employee{id=2, name='ddd', age=19, active=false, salary=871.9472533176385}
5
0