}
public void testOffsetLimitStatefulPaginate2(){
Discovery[] discs = new Discovery[300];
for(int i=0; i<300; i++){
discs[i] = new Discovery("Disc_"+i, LongAutoID_CURIE);
}
pm.insert((Object[])discs);
Query<Discovery> query = pm.createQuery(Discovery.class).order("id").stateful();
List<Discovery> res = query.limit(50).offset(12).fetch();