PropertyFileDAO { public Properties getProperties(String propertyFileName) { PropertiesConfiguration properties = propertyFilesHashmap.get(propertyFileName); return deepCopyProperties(properties); } PropertyFileDAO(); void loadPropertyFile(File propertyFile, String propertyFileName); String getProperty(String propertyFileName, String propertyName); void setProperty(String propertyFileName, String key, Object value); String getPropertyComment(String propertyFileName, String key); boolean getPropertyBoolean(String propertyFileName, String propertyName); long getPropertyLong(String propertyFileName, String propertyName); Long getPropertyLongObject(String propertyFileName, String propertyName, Long defaultValue); Set<String> getPropertyNames(String propertyFileName); Properties getProperties(String propertyFileName); void printToLog(String propertyFileName); boolean containsPropFile(String fileName);  }
@Test public void testGetProperties() throws PropertyAccessException { PropertyFileDAO propDAO = loadTestProperties(); Properties properties = propDAO.getProperties(TEST_PROPERTIES_NAME); assertTrue(properties.getProperty("stringTest").equals("test123")); }