@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final P4MatchFieldModel other = (P4MatchFieldModel) obj;
        return Objects.equals(this.id, other.id)
                && Objects.equals(this.bitWidth, other.bitWidth)
                && Objects.equals(this.matchType, other.matchType);
    }
@Test
    public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(P4_MATCH_FIELD_MODEL_1, SAME_AS_P4_MATCH_FIELD_MODEL_1)
            .addEqualityGroup(P4_MATCH_FIELD_MODEL_3, SAME_AS_P4_MATCH_FIELD_MODEL_3)
            .addEqualityGroup(P4_MATCH_FIELD_MODEL_2)
            .addEqualityGroup(P4_MATCH_FIELD_MODEL_4)
            .testEquals();
    }