public void testUpdate3() {
OpenJPAEntityManager em =
(OpenJPAEntityManager) currentEntityManager();
startTx(em);
Entity1 ent = em.find(Entity1.class, 23);
assertNotNull(ent);
assertEquals("UPDATEST", ent.getStringField());
int upd = em.createQuery(
"UPDATE Entity1 e SET e.stringField = \'UPDATEFAILED\' WHERE " +
"e.pk = 23").executeUpdate();