@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        final P4CounterModel other = (P4CounterModel) obj;
        return Objects.equals(this.id, other.id)
                && Objects.equals(this.counterType, other.counterType)
                && 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(counterModel, sameAsCounterModel)
                .addEqualityGroup(counterModel2)
                .addEqualityGroup(counterModel3)
                .addEqualityGroup(counterModel4)
                .addEqualityGroup(counterModel5)
                .testEquals();
    }