@Test
public void shouldReplaceVariables() {

    Properties values = new Properties();
    values.setProperty("animal", "quick brown fox");
    values.setProperty("target", "lazy dog");
    String templateString = "The ${animal} jumped over the ${target}.";
    StrSubstitutor sub = new StrSubstitutor(values);
    String resolvedString = sub.replace(templateString);
    assertEquals("The quick brown fox jumped over the lazy dog.", resolvedString);
}