}
public void testMidWithSubs()
throws Exception {
OpenJPAEntityManager pm =(OpenJPAEntityManager)currentEntityManager();
Extent extent = pm.createExtent(BaseSub1.class, true);
Collection pcs = new TreeSet(((Extent) extent).list());
assertEquals(2, pcs.size());
Iterator itr = pcs.iterator();
BaseSub1 pc = (BaseSub1) itr.next();
assertEquals(2, pc.getBaseField());