private JsonSchema getJsonSchemaFromPath(String name) throws Exception {
    JsonSchemaFactory factory = new JsonSchemaFactory();
    InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(name);
    return factory.getSchema(is);
  }
KerberosDescriptorTest tests the stack- and service-level descriptors for certain stacks
and services
ambari-server/src/test/java/org/apache/ambari/server/stack/KerberosDescriptorTest.java