### Question:
PersistenceDelegator { void populateClientProperties(Map properties) { if (properties != null && !properties.isEmpty()) { Map<String, Client> clientMap = getDelegate(); if (!clientMap.isEmpty()) { for (Client client : clientMap.values()) { if (client instanceof ClientPropertiesSetter) { ClientPropertiesSetter cps = (ClientPropertiesSetter) client; cps.populateClientProperties(client, properties); } } } } else { if (log.isDebugEnabled()) { log.debug("Can't set Client properties as None/ Null was supplied"); } } } PersistenceDelegator(final KunderaMetadata kunderaMetadata, final PersistenceCache pc); void persist(Object e); E findById(final Class<E> entityClass, final Object primaryKey); List<E> find(Class<E> entityClass, Object... primaryKeys); List<E> find(Class<E> entityClass, Map<String, String> embeddedColumnMap); void remove(Object e); E merge(E e); void detach(Object entity); Client getClient(EntityMetadata m); Client getClient(final String persistenceUnit); EntityEventDispatcher getEventDispatcher(); boolean isOpen(); void refresh(Object entity); boolean isTransactionInProgress(); PersistenceCache getPersistenceCache(); KunderaMetadata getKunderaMetadata();  }### Answer:
@Test public void testPopulateClientProperties() { Map props = new HashMap(); props.put("core.test.property", "core-test-property-value"); PersistenceDelegator pd = ((EntityManagerImpl) em).getPersistenceDelegator(); pd.populateClientProperties(props); Map map = em.getProperties(); Map<String, Client> clients = (Map<String, Client>) em.getDelegate(); CoreTestClient client = (CoreTestClient) clients.get("kunderatest"); Assert.assertEquals("core-test-property-value", client.getCoreTestProperty()); }