@Test
public void testDuplicateSynonyms() throws Exception {

  Properties props = new Properties();
  props.setProperty("foo.bar", "baz");
  props.setProperty("foo.bar.deprecated", "derp");
  Properties newProps = ConfigUtils.translateDeprecated(props, new String[][]{
      {"foo.bar", "foo.bar.deprecated"},
      {"chicken", "foo.bar.deprecated"}
  });
  assertNotNull(newProps);
  assertEquals("baz", newProps.getProperty("foo.bar"));
  assertEquals("derp", newProps.getProperty("chicken"));
  assertNull(newProps.getProperty("foo.bar.deprecated"));
}