EntityManager pm = currentEntityManager();
startTx(pm);
ConstantJoinPC4 pc4 = pm.find(ConstantJoinPC4.class, oid);
assertEquals (2, pc4.getManyToMany ().size ());
Iterator iter = pc4.getManyToMany ().iterator ();
ConstantJoinPC5 pc5_1 = (ConstantJoinPC5) iter.next ();
ConstantJoinPC5 pc5_2 = (ConstantJoinPC5) iter.next ();
if ("pc5-many-to-many-2".equals (pc5_1.getName ()))
{
ConstantJoinPC5 other = pc5_1;
pc5_1 = pc5_2;
pc5_2 = other;
}
assertEquals ("pc5-many-to-many-1", pc5_1.getName ());
assertEquals ("pc5-many-to-many-2", pc5_2.getName ());