@Test
public void shouldDeleteConfigurationFromXml() throws AmbariException {

  oldProperties.put("prop1", "v1-old");
  oldProperties.put("prop3", "v3-old");
  Map<String, Map<String, String>> tags = Collections.<String, Map<String, String>>emptyMap();
  Map<String, String> mergedProperties = new HashMap<>();
  mergedProperties.put("prop1", "v1-old");
  expect(amc.createConfig(eq(cluster), eq("hdfs-site"), eq(mergedProperties), anyString(), eq(tags))).andReturn(null);
  replay(injector, configHelper, amc, cluster, clusters, serviceInfo, oldConfig);
  upgradeCatalog.addNewConfigurationsFromXml();
  verify(configHelper, amc, cluster, clusters, serviceInfo, oldConfig);
}