@Override
    public boolean equals(Object object) {
        if (object instanceof DefaultDeviceDescription) {
            if (!super.equals(object)) {
                return false;
            }
            DefaultDeviceDescription that = (DefaultDeviceDescription) object;
            return Objects.equal(this.uri, that.uri)
                    && Objects.equal(this.type, that.type)
                    && Objects.equal(this.manufacturer, that.manufacturer)
                    && Objects.equal(this.hwVersion, that.hwVersion)
                    && Objects.equal(this.swVersion, that.swVersion)
                    && Objects.equal(this.serialNumber, that.serialNumber)
                    && Objects.equal(this.chassisId, that.chassisId)
                    && Objects.equal(this.defaultAvailable, that.defaultAvailable);
        }
        return false;
    }
@Test
    public void testEquals() {
        DeviceDescription device1 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW, SN, CID, DA);
        DeviceDescription sameAsDevice1 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW, SN, CID, DA);
        DeviceDescription device2 =
                new DefaultDeviceDescription(DURI2, SWITCH, MFR, HW, SW, SN, CID, DA);
        DeviceDescription device3 =
                new DefaultDeviceDescription(DURI, ROUTER, MFR2, HW, SW, SN, CID, DA);
        DeviceDescription device4 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW2, SW, SN, CID, DA);
        DeviceDescription device5 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW2, SN, CID, DA);
        DeviceDescription device6 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW, SN2, CID, DA);
        DeviceDescription device7 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW, SN, CID2, DA);
        DeviceDescription device8 =
                new DefaultDeviceDescription(DURI, SWITCH, MFR, HW, SW, SN, CID, DA2);

        new EqualsTester()
                .addEqualityGroup(device1, sameAsDevice1)
                .addEqualityGroup(device2)
                .addEqualityGroup(device3)
                .addEqualityGroup(device4)
                .addEqualityGroup(device5)
                .addEqualityGroup(device6)
                .addEqualityGroup(device7)
                .addEqualityGroup(device8)
                .testEquals();
    }