@Test
public void testMultipleDeprecations() throws Exception {

  Properties props = new Properties();
  props.setProperty("foo.bar.deprecated", "derp");
  props.setProperty("foo.bar.even.more.deprecated", "very old configuration");
  Properties newProps = ConfigUtils.translateDeprecated(props, new String[][]{
      {"foo.bar", "foo.bar.deprecated", "foo.bar.even.more.deprecated"}
  });
  assertNotNull(newProps);
  assertEquals("derp", newProps.getProperty("foo.bar"));
  assertNull(newProps.getProperty("foo.bar.deprecated"));
  assertNull(newProps.getProperty("foo.bar.even.more.deprecated"));
}