}
public void testEntityListeners() {
EntityMapLoaderContext context = new EntityMapLoaderContext(
new MockPersistenceUnitInfo());
JpaEntityMap jpaMap = context.getEntityMap();
JpaTable table = new JpaTable();
table.setName("ET1");
JpaEntity jpaEntity = new JpaEntity();
jpaEntity.setName("E1");
jpaEntity.setClassName("abc.C2");
jpaEntity.setTable(table);
jpaEntity.setPostLoad(new JpaLifecycleCallback("xpl2"));
jpaEntity.setPreRemove(new JpaLifecycleCallback("xpr2"));
jpaMap.getEntities().add(jpaEntity);
JpaEntityListeners listeners = new JpaEntityListeners();
jpaEntity.setEntityListeners(listeners);
JpaEntityListener l1 = new JpaEntityListener();