@Test
public void testFromPropertiesFile() throws IOException {

	File propertiesFile = tmp.newFile();
	Properties props = new Properties();
	props.setProperty("input", "myInput");
	props.setProperty("expectedCount", "15");
	try (final OutputStream out = new FileOutputStream(propertiesFile)) {
		props.store(out, "Test properties");
	}
	ParameterTool parameter = ParameterTool.fromPropertiesFile(propertiesFile.getAbsolutePath());
	Assert.assertEquals(2, parameter.getNumberOfParameters());
	validate(parameter);
	parameter = ParameterTool.fromPropertiesFile(propertiesFile);
	Assert.assertEquals(2, parameter.getNumberOfParameters());
	validate(parameter);
	try (FileInputStream fis = new FileInputStream(propertiesFile)) {
		parameter = ParameterTool.fromPropertiesFile(fis);
	}
	Assert.assertEquals(2, parameter.getNumberOfParameters());
	validate(parameter);
}