@Test
  public void testAllPropertiesHaveMarkdownDescriptions() throws Exception {
    Field[] fields = Configuration.class.getDeclaredFields();
    for (Field field : fields) {
      if (field.getType() != ConfigurationProperty.class) {
        continue;
      }

      ConfigurationProperty<?> configurationProperty = (ConfigurationProperty<?>) field.get(null);
      Markdown markdown = field.getAnnotation(Markdown.class);
      if (null == markdown) {
        ConfigurationMarkdown configMarkdown = field.getAnnotation(ConfigurationMarkdown.class);
        markdown = configMarkdown != null ? configMarkdown.markdown() : null;
      }

      Assert.assertNotNull("The configuration property " + configurationProperty.getKey()
          + " is missing the Markdown annotation", markdown);

      Assert.assertFalse(
          "The configuration property " + configurationProperty.getKey()
              + " has a Markdown annotation with no description",
          StringUtils.isEmpty(markdown.description()));
    }
  }
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