public void setCluster(Cluster cluster) {
      this.cluster = cluster;
    }
@param cluster
         the cluster to set
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterDeadlockTest.java