### Question:
ProcessEngineConfigurationFromProperties extends StandaloneProcessEngineConfiguration { public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } }  void configure(Dictionary<String, String> configuration);  }### Answer:
@Test public void configureNonExistingProperty() { ProcessEngineConfigurationFromProperties config = new ProcessEngineConfigurationFromProperties(); Dictionary<String, String> props = new Hashtable<String, String>(); props.put("Foo", "bar"); config.configure(props); }
@Test public void configureExistingProperty() { ProcessEngineConfigurationFromProperties config = new ProcessEngineConfigurationFromProperties(); Dictionary<String, String> props = new Hashtable<String, String>(); String username = "bar"; assertThat(config.getJdbcUsername(), is(not(username))); props.put("jdbcUsername", username); config.configure(props); assertThat(config.getJdbcUsername(), is(username)); }