@Test
  public void validatePropertySchemaOfServiceXMLs() throws SAXException,
    IOException, URISyntaxException {
    Validator validator = StackManager.getPropertySchemaValidator();
    // TODO: make sure that test does not depend on mvn/junit working directory
    StackManager.validateAllPropertyXmlsInFolderRecursively(
      getDirectoryFromMainResources("common-services"), validator);
    StackManager.validateAllPropertyXmlsInFolderRecursively(
      getDirectoryFromMainResources("stacks"), validator);
  }
This unit test checks that all config xmls for all services pass validation.
They should match xsd schema configuration-schema.xsd.
Test checks real (production) configs like hdfs-site.xml. The reason why
this test exists is to make sure that anybody who adds new properties to stack
configs, explicitly defines whether they should be added/modified/deleted
during ambari upgrade and/or stack upgrade.

@throws SAXException
@throws IOException
ambari-server/src/test/java/org/apache/ambari/server/state/ServicePropertiesTest.java