@Test
public void testGeneratedFile_success() throws Exception {

	File targetFile = this.folder.newFile();
	Assert.assertEquals( 0, targetFile.length());
	new GeneratePreferencesFile().run( new String[] { targetFile.getAbsolutePath()});
	Assert.assertNotEquals( 0, targetFile.length());
	String content = Utils.readFileContent( targetFile );
	for( String line : content.split( "\n" )) {
		if( Utils.isEmptyOrWhitespaces( line ))
			continue;
		if( ! line.startsWith( "##" )
				&& ! line.startsWith( "# " )
				&& ! line.matches( "\\w[\\w.]+\\w = .*" ))
			throw new Exception( "Invalid line: " + line );
	}
}