Resource.Type type = Resource.Type.HostComponent;
AmbariManagementController managementController = createMock(AmbariManagementController.class);
Set<ServiceComponentHostResponse> allResponse = new HashSet<ServiceComponentHostResponse>();
allResponse.add(new ServiceComponentHostResponse(
"Cluster100", "Service100", "Component100", "Host100", null, null, "", "", "" ));
allResponse.add(new ServiceComponentHostResponse(
"Cluster100", "Service100", "Component101", "Host100", null, null, "", "", "" ));
allResponse.add(new ServiceComponentHostResponse(
"Cluster100", "Service100", "Component102", "Host100", null, null, "", "", "" ));
// set expectations
expect(managementController.getHostComponents(
AbstractResourceProviderTest.Matcher.getHostComponentRequestSet(