relationMap.put("ADDRESS_ID", "addr1");
EntityMetadata metadata = KunderaMetadataManager.getEntityMetadata(
((EntityManagerFactoryImpl) emf).getKunderaMetadataInstance(), PersonBM1.class);
CoreTestEntityReader reader = new CoreTestEntityReader(kunderaMetadata);
person1.setAddress(null);
reader.recursivelyFindEntities(person1, relationMap, metadata, delegator, false);
Assert.assertNotNull(person1.getAddress());
Assert.assertTrue(ProxyHelper.isKunderaProxy(person1.getAddress()));
// Assert.assertEquals(2, person1.getAddress().getPeople().size());
person1.setAddress(null);
reader.recursivelyFindEntities(person1, relationMap, metadata, delegator, true);
Assert.assertNotNull(person1.getAddress());
Assert.assertFalse(ProxyHelper.isKunderaProxy(person1.getAddress()));
// Assert.assertEquals(2, person1.getAddress().getPeople().size());