}
}
public void testDumpRestoreQueryOrder() {
Query<PersonLongAutoID> query = pm.createQuery(PersonLongAutoID.class).order("firstName");
QueryOrder qo = (QueryOrder)query.getOrders().get(0);
String str = JsonSerializer.serialize(qo).toString();
assertNotNull(str);
QueryOrder qoRes = (QueryOrder)JsonSerializer.deserialize(QueryOrder.class, Json.loads(str));
assertNotNull(qoRes);
assertEquals(qo.ascending, qoRes.ascending);
assertEquals(qo.field.getName(), qoRes.field.getName());
}