@Test
  public void testValidateAgentHostnames() {
    Assert.assertTrue(new Configuration().validateAgentHostnames());
  }
ambari.properties doesn't contain "security.agent.hostname.validate" option
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java