expect(clusters.getCluster("cluster2")).andReturn(cluster);
expect(clusters.getCluster("cluster3")).andReturn(cluster2);
expect(clusters.getCluster("cluster4")).andThrow(new ClusterNotFoundException("cluster4"));
expect(cluster.convertToResponse()).andReturn(response);
expect(cluster2.convertToResponse()).andReturn(response2);
// replay mocks
replay(injector, clusters, cluster, cluster2, response, response2);
//test
AmbariManagementController controller = new AmbariManagementControllerImpl(null, clusters, injector);