@Test
  public void testRemovingAmbariProperties() throws Exception {
    final File ambariPropertiesFile = new File(Configuration.class.getClassLoader().getResource("ambari.properties").getPath());
    final String originalContent = FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8);
    assertTrue(originalContent.indexOf("testPropertyName") == -1);
    try {
      final String testambariProperties = "\ntestPropertyName1=testValue1\ntestPropertyName2=testValue2\ntestPropertyName3=testValue3";
      FileUtils.writeStringToFile(ambariPropertiesFile, testambariProperties, Charsets.UTF_8, true);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName1") > -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName2") > -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName3") > -1);

      final Configuration configuration = new Configuration();
      configuration.removePropertiesFromAmbariProperties(Arrays.asList("testPropertyName2"));
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName1") > -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName2") == -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName3") > -1);

      configuration.removePropertiesFromAmbariProperties(Arrays.asList("testPropertyName3"));
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName1") > -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName2") == -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName3") == -1);

      configuration.removePropertiesFromAmbariProperties(Arrays.asList("testPropertyName1"));
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName1") == -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName2") == -1);
      assertTrue(FileUtils.readFileToString(ambariPropertiesFile, Charsets.UTF_8).indexOf("testPropertyName3") == -1);
    } finally {
      FileUtils.writeStringToFile(ambariPropertiesFile, originalContent, Charsets.UTF_8);
    }
  }
Tests that every {@link ConfigurationProperty} field in
{@link Configuration} has a property {@link Markdown} annotation.
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java