### Question:
EngineConfiguration { static public EngineConfiguration createFromProperties(String propertiesName) throws IOException { Properties props = new Properties(); props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName)); return createFromProperties(props); } EngineConfiguration(
            String databaseName, DATABASE_TYPE databaseType, String url, String username, String password,
            boolean tablePrefix, boolean tableSuffix, boolean fieldPrefix, boolean fieldSuffix,
            String generatedSourcePath, String packageOfJavaModel,
            String packageOfJavaDao, String daoSuffix,
            boolean generateModelToString,
            SEQUENCE_NAME_CONVENTION sequenceNameConvention,
            String replacementTableFilename, String replacementFieldFilename, String enumFieldFilename, String replacementTypeMapFilename,
            String licenseFilename,
            List<String> tableNameIncludes,
            String encoding,
            boolean silent,
            boolean addDbNameToPackageNames); static EngineConfiguration createFromProperties(String propertiesName); static EngineConfiguration createFromProperties(Properties props); Database getDatabase(); DATABASE_TYPE getDatabaseType(); SEQUENCE_NAME_CONVENTION getSequenceNameConvention(); void setSequenceNameConvention(SEQUENCE_NAME_CONVENTION sequenceNameConvention); String getUrl(); String getUsername(); String getPassword(); boolean isTablePrefix(); boolean isTableSuffix(); boolean isFieldPrefix(); boolean isFieldSuffix(); boolean isSilent(); boolean isAddDbNameToPackageNames(); String getGeneratedSourcePath(); String getPackageOfJavaModel(); String getPackageOfJavaDao(); String getDaoSuffix(); boolean isGenerateModelToString(); void setGenerateModelToString(boolean generateModelToString); List<String> getTableNameIncludes(); void setTableNameIncludes(List<String> tableNameIncludes); String getReplacementTableFilename(); String getReplacementFieldFilename(); String getEnumFieldFilename(); String getReplacementTypeMapFilename(); String getLicenseFilename(); String getLicenseText(); Map<String, String> getReplacementTableMap(); void setReplacementTableMap(Map<String, String> replacementTableMap); Map<String, String> getReplacementFieldMap(); void setReplacementFieldMap(Map<String, String> replacementFieldMap); Map<String, String> getEnumFieldMap(); void setEnumFieldMap(Map<String, String> enumFieldMap); Map<String, String> getReplacementTypeMap(); void setTypeMap(Map<String, String> replacementTypeMap); Locale getLocale(); void setLocale(Locale locale); String getEncoding(); @Override String toString(); static final String MISSING_LICENSE_TEXT; }### Answer:
@Test public void testCreateFromProperties_String() throws Exception { System.out.println("createFromProperties"); EngineConfiguration result = EngineConfiguration.createFromProperties(propertiesName); assertProperties(result); }
@Test public void testCreateFromProperties_Properties() throws Exception { System.out.println("createFromProperties"); Properties props = new Properties(); props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName)); EngineConfiguration result = EngineConfiguration.createFromProperties(props); assertProperties(result); }