*/
public void testSubclassClone() {
OpenJPAEntityManager pm =
(OpenJPAEntityManager) currentEntityManager();
startTx(pm);
SubclassClone orig = new SubclassClone("test");
pm.persist(orig);
endTx(pm);
pm.refresh(orig);
SubclassClone copy = orig.safeClone();
assertEquals("test", copy.getString());
assertTrue(pm.isPersistent(orig));
// this should be true since the sm should be VM copied.
// as we intentionally don't handle this case.
assertTrue(pm.isPersistent(copy));
endEm(pm);