public void testWithPDInstance() throws NoSuchMethodException, Throwable
{
PersistenceDelegator delegator = CoreTestUtilities.getDelegator(em);
PersonnelDTO dto = new PersonnelDTO("1", "vivek", "mishra");
em.persist(dto);
LazyInitializerFactory factory = kunderaMetadata.getCoreMetadata().getLazyInitializerFactory();
KunderaProxy proxy = factory.getProxy("personnel#1", PersonnelDTO.class, null, null, "1", delegator);
LazyInitializer li = proxy.getKunderaLazyInitializer();
((CglibLazyInitializer)li).setPersistenceDelegator(delegator);
li.setImplementation(proxy);
li.initialize();