ds.put(null, newFlightEntity("1", "yam", null, 1, 2));
// This is impossible in the datastore, so run totally in-memory
String query = "SELECT FROM " + Flight.class.getName() + " WHERE origin == 'yar' || dest == null";
Query q = pm.newQuery(query);
q.addExtension("datanucleus.query.evaluateInMemory", "true");
try {
List<Flight> results = (List<Flight>) q.execute();
Assert.assertEquals("Number of results was wrong", 2, results.size());
} catch (JDOException jdoe) {
fail("Threw exception when evaluating query in-memory, but should have run");