@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof DefaultPatchDescription) {
            final DefaultPatchDescription that = (DefaultPatchDescription) obj;
            return this.getClass() == that.getClass() &&
                    Objects.equals(this.deviceId, that.deviceId) &&
                    Objects.equals(this.ifaceName, that.ifaceName) &&
                    Objects.equals(this.peerName, that.peerName);
        }
        return false;
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(defaultPatchDescription1, sameAsDefaultPatchDescription1)
                .addEqualityGroup(defaultPatchDescription2)
                .addEqualityGroup(defaultPatchDescription3)
                .addEqualityGroup(defaultPatchDescription4)
                .addEqualityGroup(defaultPatchDescriptionNoDeviceId)
                .testEquals();
    }