@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof TestTransaction)) return false;

        TestTransaction that = (TestTransaction) o;

        if (amount != that.amount) return false;
        if (entity != null ? !entity.equals(that.entity) : that.entity != null) return false;
        if (item != null ? !item.equals(that.item) : that.item != null) return false;
        if (paymentMethod != null ? !paymentMethod.equals(that.paymentMethod) : that.paymentMethod != null)
            return false;

        return true;
    }