expect(cluster.getService("service2")).andThrow(new ServiceNotFoundException("cluster1", "service2"));
expect(cluster.getService("service3")).andThrow(new ServiceNotFoundException("cluster1", "service3"));
expect(cluster.getService("service4")).andReturn(service2);
expect(service1.convertToResponse()).andReturn(response);
expect(service2.convertToResponse()).andReturn(response2);
// replay mocks
replay(injector, clusters, cluster, service1, service2, response, response2);
//test
AmbariManagementController controller = new AmbariManagementControllerImpl(null, clusters, injector);