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.


Hi @gurbuzali ,  This test behaves very strangely.  giving very random looking output.  

an example of the printed output 
Employee{id=11, name='fff', age=18, active=true, salary=535.4247330317382}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
Employee{id=13, name='ggg', age=63, active=false, salary=210.21859931516516}
Employee{id=14, name='aaa', age=8, active=false, salary=259.7854049718904}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
5
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
Employee{id=13, name='ggg', age=63, active=false, salary=210.21859931516516}
4
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
Employee{id=13, name='ggg', age=63, active=false, salary=210.21859931516516}
4
Employee{id=13, name='ggg', age=63, active=false, salary=210.21859931516516}
Employee{id=14, name='aaa', age=8, active=false, salary=259.7854049718904}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
5
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
2
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
Employee{id=13, name='ggg', age=63, active=false, salary=210.21859931516516}
Employee{id=11, name='fff', age=18, active=true, salary=535.4247330317382}
Employee{id=14, name='aaa', age=8, active=false, salary=259.7854049718904}
4
Employee{id=14, name='aaa', age=8, active=false, salary=259.7854049718904}
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
Employee{id=11, name='fff', age=18, active=true, salary=535.4247330317382}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
5
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
2
Employee{id=15, name='ddd', age=36, active=false, salary=237.8156720906197}
Employee{id=12, name='ggg', age=15, active=false, salary=782.7976050606228}
Employee{id=10, name='eee', age=34, active=false, salary=948.8528227424821}
3
0