@BeforeClass
  public static void setUpClass() {
    REQUEST_ALL_FIELDS_SET = read("add_service_api/request1.json");
    REQUEST_MINIMAL_SERVICES_AND_COMPONENTS = read("add_service_api/request2.json");
    REQUEST_MINIMAL_SERVICES_ONLY = read("add_service_api/request3.json");
    REQUEST_MINIMAL_COMPONENTS_ONLY = read("add_service_api/request4.json");
    REQUEST_INVALID_NO_SERVICES_AND_COMPONENTS = read("add_service_api/request_invalid_1.json");
    REQUEST_INVALID_INVALID_FIELD = read("add_service_api/request_invalid_2.json");
    REQUEST_INVALID_INVALID_CONFIG = read("add_service_api/request_invalid_3.json");
  }
Tests for {@link AddServiceRequest} serialization / deserialization / syntax validation
ambari-server/src/test/java/org/apache/ambari/server/topology/addservice/AddServiceRequestTest.java