RootServiceResponseFactory.Services.AMBARI.getComponents().length,
rootServiceComponents.size());
for (int i = 0; i < RootServiceResponseFactory.Services.AMBARI
.getComponents().length; i++) {
Components component =
RootServiceResponseFactory.Services.AMBARI.getComponents()[i];
if (component.name().equals(
RootServiceResponseFactory.Components.AMBARI_SERVER.name()))
assertTrue(rootServiceComponents
.contains(new RootServiceComponentResponse(component.name(),
ambariMetaInfo.getServerVersion(),
configs.getAmbariProperties())));
else
assertTrue(rootServiceComponents
.contains(new RootServiceComponentResponse(component.name(),
RootServiceResponseFactory.NOT_APPLICABLE,
Collections.<String, String> emptyMap())));
}
// Request existent service name, existent component name