ServiceComponent component2 = createNiceMock(ServiceComponent.class);
ServiceComponentResponse response1 = createNiceMock(ServiceComponentResponse.class);
ServiceComponentResponse response2 = createNiceMock(ServiceComponentResponse.class);
// requests
ServiceComponentRequest request1 = new ServiceComponentRequest("cluster1", "service1", "component1",
null);
ServiceComponentRequest request2 = new ServiceComponentRequest("cluster1", "service1", "component2",
null);
ServiceComponentRequest request3 = new ServiceComponentRequest("cluster1", "service1", "component3",
null);
ServiceComponentRequest request4 = new ServiceComponentRequest("cluster1", "service1", "component4",
null);
ServiceComponentRequest request5 = new ServiceComponentRequest("cluster1", "service2", null, null);
Set<ServiceComponentRequest> setRequests = new HashSet<ServiceComponentRequest>();
setRequests.add(request1);
setRequests.add(request2);
setRequests.add(request3);