@Override
    public boolean equals(Object other) {
        if (!(other instanceof DefaultPartition)) {
            return false;
        }
        DefaultPartition that = (DefaultPartition) other;
        return this.getId().equals(that.getId()) &&
                Sets.symmetricDifference(Sets.newHashSet(this.members), Sets.newHashSet(that.members)).isEmpty();
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(partition1, sameAsPartition1)
                .addEqualityGroup(partition2, copyOfPartition2)
                .addEqualityGroup(partition3)
                .testEquals();
    }