@Test
  public void testMaxAuthenticationFailureConfiguration() {
    Configuration configuration;

    // Test default value is 0
    configuration = new Configuration();
    assertEquals(0, configuration.getMaxAuthenticationFailures());

    // Test configured value
    Properties properties = new Properties();
    properties.setProperty(Configuration.MAX_LOCAL_AUTHENTICATION_FAILURES.getKey(), "10");
    configuration = new Configuration(properties);
    assertEquals(10, configuration.getMaxAuthenticationFailures());

    properties.setProperty(Configuration.MAX_LOCAL_AUTHENTICATION_FAILURES.getKey(), "not a number");
    configuration = new Configuration(properties);
    try {
      configuration.getMaxAuthenticationFailures();
      Assert.fail("Expected NumberFormatException");
    } catch (NumberFormatException e) {
      // This is expected
    }
  }
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