e.setProperty("integer", ss.serialize(3));
Flight f = new Flight("bos", "mia", "harold", 23, 24);
e.setProperty("flight", ss.serialize(f));
ds.put(e);
beginTxn();
HasSerializableJDO hasSerializable = pm.getObjectById(
HasSerializableJDO.class, KeyFactory.keyToString(e.getKey()));
assertNotNull(hasSerializable);
assertNotNull(hasSerializable.getYam());
assertEquals(yam.getStr1(), hasSerializable.getYam().getStr1());
assertEquals(yam.getStr2(), hasSerializable.getYam().getStr2());
assertEquals(yamList, hasSerializable.getYamList());
assertNotNull(hasSerializable.getQuery());
assertEquals(query.getApp(), hasSerializable.getQuery().getApp());
assertEquals(query.getKind(), hasSerializable.getQuery().getKind());
assertEquals(Integer.valueOf(3), hasSerializable.getInteger());
Flight f2 = hasSerializable.getFlight();
assertEquals(f.getDest(), f2.getDest());
assertEquals(f.getOrigin(), f2.getOrigin());
commitTxn();
}