mockListener.expects(new InvokeOnceMatcher()).method("afterMakePersistent").isVoid();
mockListener.expects(new InvokeOnceMatcher()).method("beforeMakePersistent").isVoid();
mockListener.expects(new InvokeOnceMatcher()).method("afterDeletePersistent").isVoid();
mockListener.expects(new InvokeOnceMatcher()).method("beforeDeletePersistent").isVoid();
PersistenceStore store2 = new PBStore("jetspeed");
store2.getTransaction().begin();
A a2 = new A();
a2.setName("a2");
store2.makePersistent(a2);
store2.getTransaction().commit();
store2.getTransaction().begin();
store2.deletePersistent(a2);
store2.getTransaction().commit();
mockListener.verify();
}