}
public void testOffsetLimitStatefulPaginate2(){
DiscoveryStringId[] discs = new DiscoveryStringId[300];
for(int i=0; i<300; i++){
discs[i] = new DiscoveryStringId("Disc_"+String.format("%03d", i), StringID_CURIE);
}
pm.insert((Object[])discs);
Query<DiscoveryStringId> query = pm.createQuery(DiscoveryStringId.class).order("name").stateful();
List<DiscoveryStringId> res = query.limit(50).offset(12).fetch();