@Test
public void testReplaceProperties() throws Exception {

    Properties properties = new Properties();
    String value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties);
    assertThat(value).isEqualTo("bar");
    properties.put("foo", "baz");
    value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties);
    assertThat(value).isEqualTo("baz");
    properties.put("foo:bar", "ABC");
    value = StringPropertyReplacer.replaceProperties("${foo:bar}", properties);
    assertThat(value).isEqualTo("ABC");
}