Map<String, String> props = Utils.newHashMap();
props.put("datanucleus.appengine.datastoreEnableXGTransactions", Boolean.TRUE.toString());
switchDatasource(PersistenceManagerFactoryName.transactional, props);
beginTxn();
HasOneToManyWithUnowned withUnowned =
pm.getObjectById(HasOneToManyWithUnowned.class, withKey.getId());
assertEquals(2, withUnowned.getOthers().size());
assertEquals(sideB1.getId(), withUnowned.getOthers().get(0).getId());
assertEquals(sideB2.getId(), withUnowned.getOthers().get(1).getId());
commitTxn();
}