}
public void testFetchPaginateStatefulPreviousPageFromScratch() {
DiscoveryStringId[] discs = new DiscoveryStringId[10];
for(int i=0; i<10; i++){
discs[i] = new DiscoveryStringId("Disc_"+String.format("%02d", i), StringID_CURIE);
}
pm.insert((Object[])discs);
Query<DiscoveryStringId> query = pm.createQuery(DiscoveryStringId.class).paginate(5).stateful().order("name");
List<DiscoveryStringId> res = query.previousPage().fetch();