public void testOptimisticLocking2() {
EntityManager pm1 = getPM(true, false);
startTx(pm1);
EmbeddedOwnerPC pc1 = pm1.find(EmbeddedOwnerPC.class, id1);
assertNotNull("pc1 is null in testoptlock2", pc1);
EntityManager pm2 = currentEntityManager();
startTx(pm2);
EmbeddedOwnerPC pc2 = pm1.find(EmbeddedOwnerPC.class, id1);
assertNotNull("pc2 is null in testoptlock2", pc2);
EmbeddedPC embed2 = pc2.getEmbedded();
embed2.setStringField("xxxx");
endTx(pm2);
endEm(pm2);