@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        CachedQueryEntry<?, ?> that = (CachedQueryEntry<?, ?>) o;
        return keyData.equals(that.keyData);
    }
@Test
    public void testEquals_givenOtherHasEqualKey_thenReturnTrue() {
        CachedQueryEntry entry1 = createEntry("key");
        CachedQueryEntry entry2 = createEntry("key");

        assertTrue(entry1.equals(entry2));
    }