@Test
  public void testConfigDependencies() throws Exception {
    ServiceInfo serviceInfo = metaInfo.getService(STACK_NAME_HDP, EXT_STACK_NAME,
        SERVICE_NAME_MAPRED2);
    assertNotNull(serviceInfo);
    assertTrue(!serviceInfo.getConfigDependencies().isEmpty());
  }
Method: getServiceInfo(String stackName, String version, String
serviceName)
ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java