### Question:
Cluster extends BaseConfiguration implements Comparable<Cluster> { public void setReplicas(Integer replicas) { this.replicas = replicas; }  String getClusterName(); void setClusterName(@Nonnull String clusterName); Integer getReplicas(); void setReplicas(Integer replicas); Boolean isAllowReplicasBelowMinDynClusterSize(); void setAllowReplicasBelowMinDynClusterSize(Boolean value); Integer getMaxConcurrentStartup(); void setMaxConcurrentStartup(Integer value); @Nullable @Override String getServerStartPolicy(); @Override void setServerStartPolicy(String serverStartPolicy); KubernetesResource getClusterService(); void setClusterService(KubernetesResource clusterService); Map<String, String> getClusterLabels(); Map<String, String> getClusterAnnotations(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(@Nonnull Cluster o);  }### Answer:
@Test public void whenReplicasAreTheSame_objectsAreEqual() { cluster1.setReplicas(3); cluster2.setReplicas(3); assertThat(cluster1, equalTo(cluster2)); }
@Test public void whenReplicasDiffer_objectsAreNotEqual() { cluster1.setReplicas(3); assertThat(cluster1, not(equalTo(cluster2))); }