@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final P4MeterModel other = (P4MeterModel) obj;
        return Objects.equals(this.id, other.id)
                && Objects.equals(this.meterType, other.meterType)
                && Objects.equals(this.unit, other.unit)
                && Objects.equals(this.table, other.table)
                && Objects.equals(this.size, other.size);
    }
@Test
    public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(P4_METER_MODEL_1, SAME_AS_P4_METER_MODEL_1)
            .addEqualityGroup(P4_METER_MODEL_2)
            .addEqualityGroup(P4_METER_MODEL_3)
            .testEquals();
    }