@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof MirroringStatistics) {
            final MirroringStatistics that = (MirroringStatistics) obj;
            return this.getClass() == that.getClass() &&
                    Objects.equals(this.mirroringName, that.mirroringName) &&
                    Objects.equals(this.txBytes, that.txBytes) &&
                    Objects.equals(this.txPackets, that.txPackets);
        }
        return false;
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(mirrorStatisticStats1, sameAsMirrorStatisticStats1)
                .addEqualityGroup(mirrorStatisticStats2)
                .addEqualityGroup(mirrorStatisticStats3)
                .testEquals();
    }