### Question:
Template { public void set(String name, String value) { this.variables.put(name, value); } Template(String templateText); void set(String name, String value); String evaluate();  }### Answer:
@Test public void unknownVariablesAreIgnored() { template.set("doesnotexist", "Hi"); assertTemplateEvaluatesTo("1, 2, 3"); }
@Test public void settingValueMultipleTimes() { template.set("three", "4"); assertTemplateEvaluatesTo("1, 2, 4"); }