Resource.Type type = Resource.Type.Host;
AmbariManagementController managementController = createMock(AmbariManagementController.class);
Set<HostResponse> allResponse = new HashSet<HostResponse>();
allResponse.add(new HostResponse("Host100", "Cluster100",
"", "", 2, 1, "", "", "", 100000L, 200000L, null, 10L,
0L, "rack info", null, null,
new HostHealthStatus(HostHealthStatus.HealthStatus.HEALTHY, "HEALTHY"), "HEALTHY"));
allResponse.add(new HostResponse("Host101", "Cluster100",
"", "", 2, 1, "", "", "", 100000L, 200000L, null, 10L,
0L, "rack info", null, null,
new HostHealthStatus(HostHealthStatus.HealthStatus.HEALTHY, "HEALTHY"), "HEALTHY"));
allResponse.add(new HostResponse("Host102", "Cluster100",
"", "", 2, 1, "", "", "", 100000L, 200000L, null, 10L,
0L, "rack info", null, null,
new HostHealthStatus(HostHealthStatus.HealthStatus.HEALTHY, "HEALTHY"), "HEALTHY"));
// set expectations