Resource.Type type = Resource.Type.Component;
AmbariManagementController managementController = createMock(AmbariManagementController.class);
Set<ServiceComponentResponse> allResponse = new HashSet<ServiceComponentResponse>();
allResponse.add(new ServiceComponentResponse(100L, "Cluster100", "Service100", "Component100", null, null, ""));
allResponse.add(new ServiceComponentResponse(100L, "Cluster100", "Service100", "Component101", null, null, ""));
allResponse.add(new ServiceComponentResponse(100L, "Cluster100", "Service100", "Component102", null, null, ""));
// set expectations
expect(managementController.getComponents(
AbstractResourceProviderTest.Matcher.getComponentRequestSet(
"Cluster100", null, null, null, null))).andReturn(allResponse).once();