@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final P4PacketMetadataModel other = (P4PacketMetadataModel) obj;
        return Objects.equals(this.id, other.id)
                && Objects.equals(this.bitWidth, other.bitWidth);
    }
@Test
    public void testEquals() {
        new EqualsTester()
                .addEqualityGroup(metadataModel, sameAsMetadataModel)
                .addEqualityGroup(metadataModel2)
                .addEqualityGroup(metadataModel3)
                .testEquals();
    }