for (int i = 0; i < listeners.length; i++) {
pmf.addInstanceLifecycleListener(listeners[i], new Class[]{BasicA.class});
}
BasicA ba = new BasicA();
assertEquals("unexpect event on create ", 0, nbEvent[0]);
ba.writeF1("testInstanceLifecycleListener_1");
assertEquals("unexpect event on write ", 0, nbEvent[0]);
pm.currentTransaction().begin();
pm.makePersistent(ba);
assertEquals("Bad event number on make persistent: ", 1, nbEvent[0]);
ba.writeF1("testInstanceLifecycleListener_1");