@Test
public void testDereferenceAllConfigLoop() throws IOException {

  AgentProviderService aps = createAgentProviderService(new Configuration());
  Map<String, Map<String, String>> allConfigs = new HashMap<String, Map<String, String>>();
  Map<String, String> cfg1 = new HashMap<String, String>();
  cfg1.put("a1", "0${@//site/cfg-2/A1}");
  Map<String, String> cfg2 = new HashMap<String, String>();
  cfg2.put("A1", "11${@//site/cfg1/a1}");
  allConfigs.put("cfg1", cfg1);
  allConfigs.put("cfg-2", cfg2);
  aps.dereferenceAllConfigs(allConfigs);
  Assert.assertEquals("0${@//site/cfg-2/A1}", cfg1.get("a1"));
  Assert.assertEquals("11${@//site/cfg1/a1}", cfg2.get("A1"));
}