DcClusterShard { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DcClusterShard that = (DcClusterShard) o; return Objects.equals(dcId, that.dcId) && Objects.equals(clusterId, that.clusterId) && Objects.equals(shardId, that.shardId); } DcClusterShard(String dcId, String clusterId, String shardId); String getDcId(); String getClusterId(); String getShardId(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { Assert.assertTrue(dcClusterShard.equals(new DcClusterShard("dc", "cluster", "shard"))); }