rcs.add(new RootClass("rf1"));
rcs.add(new RootClass("rf2"));
rcs.add(new Subclass1("rf3", "f1_3"));
rcs.add(new Subclass12("rf4", "f1_4", "f12_4"));
rcs.add(new Subclass2("rf5", "f2_5"));
pm.makePersistentAll(rcs);
pm.currentTransaction().commit();
pm.currentTransaction().begin();
checkNumberOfInstanceWithExtent(RootClass.class, false, 2, pm);
checkNumberOfInstanceWithExtent(RootClass.class, true, 5, pm);