@Test
  public void testSerialize_basic() throws Exception {
    AddServiceRequest request = mapper.readValue(REQUEST_ALL_FIELDS_SET, AddServiceRequest.class);
    AddServiceRequest serialized = serialize(request);
    assertEquals(request, serialized);
    assertEquals(ImmutableMap.of(), serialized.getCredentials());
  }
Tests for {@link AddServiceRequest} serialization / deserialization / syntax validation
ambari-server/src/test/java/org/apache/ambari/server/topology/addservice/AddServiceRequestTest.java