@Test
public void testMissingPropertyIsReplacedWithEmptyString() {

    Properties values = new Properties() {{
        setProperty("foo", "fooValue");
        setProperty("baz", "bazValue");
    }};
    String template = "Test: ${foo} ${bar} ${baz} :Test";
    String expected = "Test: fooValue  bazValue :Test";
    String result = new StrSubstitutor(values).replace(template);
    assertEquals(expected, result);
}