ds.put(null, parentEntity);
Query q = pm.newQuery(
"select from " + HasOneToOneJDO.class.getName()
+ " where flight == f parameters " + Flight.class.getName() + " f");
q.addExtension(DatastoreManager.QUERYEXT_INMEMORY_WHEN_UNSUPPORTED, "false");
try {
q.execute(parentEntity.getKey());
fail("expected JDOException");
} catch (JDOException e) {
// good