### Question:
AbstractPropertyReader { public void read(String pu) { String propertyFileName = null; if (puMetadata.getProperties() != null && puMetadata.getProperties().containsKey(PersistenceProperties.KUNDERA_CLIENT_PROPERTY)) { propertyFileName = (String) puMetadata.getProperties().get(PersistenceProperties.KUNDERA_CLIENT_PROPERTY); } if (externalProperties != null && externalProperties.containsKey(PersistenceProperties.KUNDERA_CLIENT_PROPERTY)) { propertyFileName = (String) externalProperties.get(PersistenceProperties.KUNDERA_CLIENT_PROPERTY); } if (propertyFileName == null) { propertyFileName = puMetadata != null ? puMetadata .getProperty(PersistenceProperties.KUNDERA_CLIENT_PROPERTY) : null; } if (propertyFileName != null && PropertyType.value(propertyFileName) != null && PropertyType.value(propertyFileName).equals(PropertyType.xml)) { onXml(onParseXML(propertyFileName, puMetadata)); } } AbstractPropertyReader(Map externalProperties, final PersistenceUnitMetadata puMetadata); void read(String pu);  }### Answer:
@Test public void testParseXML() { String pu = "PropertyTest"; EntityManagerFactory emf = Persistence.createEntityManagerFactory(pu); PropertyReader reader = new DummyPropertyReader(null, ((EntityManagerFactoryImpl) emf) .getKunderaMetadataInstance().getApplicationMetadata().getPersistenceUnitMetadata(pu)); ClientProperties cp = null; reader.read(pu); cp = DummyPropertyReader.dsmd.getClientProperties(); assertValues(cp); }