@Test
  public void getServiceInfo() throws Exception {
    ServiceInfo si = metaInfo.getService(STACK_NAME_HDP, STACK_VERSION_HDP,
        SERVICE_NAME_HDFS);
    assertNotNull(si);
  }
Method: getServiceInfo(String stackName, String version, String
serviceName)
ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java