@Override
    public boolean equals(Object object) {
        if (object != null && getClass() == object.getClass()) {
            if (!super.equals(object)) {
                return false;
            }
            DefaultPortDescription that = (DefaultPortDescription) object;
            return Objects.equal(this.number, that.number)
                    && Objects.equal(this.isEnabled, that.isEnabled)
                    && Objects.equal(this.type, that.type)
                    && Objects.equal(this.portSpeed, that.portSpeed);
        }
        return false;
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(portDescription1, sameAsPortDescription1)
                .addEqualityGroup(portDescription2)
                .addEqualityGroup(portDescription3)
                .testEquals();
    }