@Test
public void testExpandString() {

	// Null properties
	Assert.assertEquals( "toto", Utils.expandTemplate( "toto", null ));
	// No property
	Properties params = new Properties();
	Assert.assertEquals( "toto", Utils.expandTemplate( "toto", params ));
	// With properties
	params.setProperty("firstname", "James");
	params.setProperty("lastname", "Bond");
	String tmpl = "My name is {{lastname}}, {{ firstname }} {{ lastname }}!";
	Assert.assertEquals(
			"My name is Bond, James Bond!",
			Utils.expandTemplate(tmpl, params));
	tmpl = "This is an {{ unknown }} parameter";
	Assert.assertEquals( tmpl, Utils.expandTemplate(tmpl, params));
}