class JpaUnitCdiExtension implements Extension {

    public <T> void registerProducer(@Observes final ProcessProducer<T, EntityManager> pb) {
        pb.setProducer(new EntityManagerProducerProxy(pb.getProducer()));
    }

}