private PersistenceManagerFactoryImpl factory = new PersistenceManagerFactoryImpl();
public void testReBeginTx() throws Exception
{
Person person = new Person();
person.setFirstname("Brian");
person.setLastname("McCallister");
PersistenceManager pm = factory.getPersistenceManager();
Transaction tx = pm.currentTransaction();
tx.begin();
pm.makePersistent(person);
tx.commit();