ConfigurationBuilder { public ConfigurationBuilder addPropertiesFile(final String path) { return addPropertiesFile(new File(path)); } ConfigurationBuilder(); ConfigurationBuilder withDefaults(
            final Map<String, Object> defaults); ConfigurationBuilder withCommandlineOptions(final Options options); ConfigurationBuilder addCommandlineArgs(final String[] args); ConfigurationBuilder addPropertiesFile(final String path); ConfigurationBuilder addPropertiesFile(final File file); Configuration build();  }
@Test public void addPropertiesFile() { URL filePath = this.getClass() .getResource("/config/test.properties"); Configuration config = new ConfigurationBuilder() .withCommandlineOptions(ServerFactory.CLI_OPTIONS) .addPropertiesFile(filePath.getPath()) .build(); assertEquals(config.getString( Config.HOST.getKey()), "example.com"); assertEquals(config.getInt( Config.PORT.getKey()), 9000); assertEquals(config.getString( Config.WORKING_DIR.getKey()), "/opt/kangaroo"); assertEquals(config.getString( Config.KEYSTORE_PATH.getKey()), "/foo/bar"); assertEquals(config.getString( Config.KEYSTORE_PASS.getKey()), "keystore_password"); assertEquals(config.getString( Config.KEYSTORE_TYPE.getKey()), "JKS"); assertEquals(config.getString( Config.CERT_ALIAS.getKey()), "cert_alias"); assertEquals(config.getString( Config.CERT_KEY_PASS.getKey()), "key_password"); assertEquals(config.getString( Config.HTML_APP_ROOT.getKey()), "/var/www"); }