@Test
  public void testDeserialize_invalid_noServicesAndComponents() throws Exception {
    // empty service/component list should be accepted at the JSON level, will be rejected by the request handler
    mapper.readValue(REQUEST_INVALID_NO_SERVICES_AND_COMPONENTS, AddServiceRequest.class);
  }
Tests for {@link AddServiceRequest} serialization / deserialization / syntax validation
ambari-server/src/test/java/org/apache/ambari/server/topology/addservice/AddServiceRequestTest.java