// Migrate the data
Migrator migrator = new Migrator(((JDOPersistenceManagerFactory)oldPMF).getNucleusContext());
try {
// Migrate the parent
Entity pEntity = ds.get(pIdKey);
boolean changed = migrator.migrate(pEntity, MigratorOneToManyParent.class);
assertTrue("Parent entity should have been changed but wasnt", changed);
if (changed) {
ds.put(pEntity);
}