### Question:
Engine { public EngineConfiguration getEngineConfiguration() { return engineConfiguration; } Engine(EngineConfiguration engineConfiguration); void execute(); EngineConfiguration getEngineConfiguration();  }### Answer:
@Test public void testInitEngineConfiguration() throws Exception { System.out.println("testInitEngineConfiguration"); Properties props = new Properties(); props.put("database.name", "callisto"); props.put("databaseType", "POSTGRESQL9"); props.put("url", "jdbc:postgresql: props.put("username", "callisto"); props.put("password", "callisto"); props.put("tablePrefix", "true"); props.put("tableSuffix", "false"); props.put("fieldPrefix", "true"); props.put("fieldSuffix", "false"); props.put("generatedSourcePath", "/tmp/database"); props.put("packageOfJavaModel", "hu.vanio.easydaodemo.model"); props.put("packageOfJavaDao", "hu.vanio.easydaodemo.dao"); props.put("daoSuffix", "Dao"); props.put("sequenceNameConvention", "PREFIXED_TABLE_NAME"); props.put("replacementTableFilename", "replacement-table"); props.put("replacementFieldFilename", "replacement-field"); props.put("enumFieldFilename", "replacement-field"); props.put("encoding", "utf-8"); EngineConfiguration engineConf = EngineConfiguration.createFromProperties(props); Engine instance = new Engine(engineConf); assertEquals("callisto", instance.getEngineConfiguration().getDatabase().getName()); assertEquals("POSTGRESQL9", instance.getEngineConfiguration().getDatabaseType().name()); assertEquals(EngineConfiguration.MISSING_LICENSE_TEXT, instance.getEngineConfiguration().getLicenseText()); java.net.URL url = Thread.currentThread().getContextClassLoader().getResource("license.txt"); Path path = Paths.get(url.toURI()); props.put("licenseFilename", path.toString()); engineConf = EngineConfiguration.createFromProperties(props); instance = new Engine(engineConf); assertEquals("callisto", instance.getEngineConfiguration().getDatabase().getName()); assertEquals("POSTGRESQL9", instance.getEngineConfiguration().getDatabaseType().name()); assertNotNull(instance.getEngineConfiguration().getLicenseText()); assertEquals("DUMMY LICENSE", instance.getEngineConfiguration().getLicenseText()); }