}
public void testLeafWithSubs()
throws Exception {
OpenJPAEntityManager pm =(OpenJPAEntityManager)currentEntityManager();
Extent extent = pm.createExtent(BaseSub1Sub2.class, true);
Iterator itr = extent.iterator();
assertTrue(itr.hasNext());
BaseSub1Sub2 pc = (BaseSub1Sub2) itr.next();
assertEquals(4, pc.getBaseField());
assertEquals(5, pc.getBaseSub1Field());
assertEquals(6, pc.getBaseSub1Sub2Field());
assertTrue(!itr.hasNext());
extent.closeAll();
pm.close();
assertEquals(1, sql.size());
assertNotSQL(_outer);
}