@Test
public void copy() throws Exception {

  Configuration srcConf = new Configuration(false);
  Configuration targetConf = new Configuration(false);
  srcConf.set("testParameter1", "valueFromSource");
  srcConf.set("testParameter2", "valueFromSource");
  targetConf.set("testParameter2", "valueFromTarget");
  targetConf.set("testParameter3", "valueFromTarget");
  ConfigurationUtils.copy(srcConf, targetConf);
  assertEquals("valueFromSource", targetConf.get("testParameter1"));
  assertEquals("valueFromSource", targetConf.get("testParameter2"));
  assertEquals("valueFromTarget", targetConf.get("testParameter3"));
}