@Test
@Parameters(method = "useRegexReplacement")
public void testPerformReplacementWithSingleProperty(boolean regex) throws IOException {

  Properties actualProperties = build("key1", "value1", "key2", "value2");
  List<ReplacementProperty> replacementProperties = new ArrayList<>();
  replacementProperties.add(new ReplacementProperty("key1", null, "value", "another", regex, false, null));
  propertiesReplacer.performReplacement(actualProperties, replacementProperties);
  Properties exptecedProperties = build("key1", "another1", "key2", "value2");
  assertEquals(exptecedProperties, actualProperties);
}