@Test
public void getNewValue_matcherGroup() {

    ReplaceResourcePropertyValues action =
            new ReplaceResourcePropertyValuesRegex("(" + OLD_VAL + ")", NEW_VAL + "-$1", Arrays.asList());
    assertEquals("newVal-oldVal", action.getNewValue("oldVal"));
    assertEquals("newVal-oldVal#newVal-oldVal", action.getNewValue("oldVal#oldVal"));
}