@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        DefaultQueryCacheEventData that = (DefaultQueryCacheEventData) o;

        if (sequence != that.sequence) {
            return false;
        }
        if (eventType != that.eventType) {
            return false;
        }
        if (partitionId != that.partitionId) {
            return false;
        }
        if (!Objects.equals(key, that.key)) {
            return false;
        }
        if (!Objects.equals(value, that.value)) {
            return false;
        }
        if (!Objects.equals(dataKey, that.dataKey)) {
            return false;
        }
        if (!Objects.equals(dataNewValue, that.dataNewValue)) {
            return false;
        }
        if (!Objects.equals(dataOldValue, that.dataOldValue)) {
            return false;
        }
        if (!Objects.equals(mapName, that.mapName)) {
            return false;
        }
        return Objects.equals(serializationService, that.serializationService);
    }
@Test
    public void testEquals() {
        assertEquals(queryCacheEventData, queryCacheEventData);
        assertEquals(queryCacheEventData, queryCacheEventDataSameAttributes);

        assertNotEquals(null, queryCacheEventData);
        assertNotEquals(new Object(), queryCacheEventData);

        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherSequence);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherEventType);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherPartitionId);

        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherKey);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherValue);

        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherDataKey);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherDataNewValue);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherDataOldValue);

        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherSerializationService);
        assertNotEquals(queryCacheEventData, queryCacheEventDataOtherMapName);
    }