public K getKey() {
        if (key == null && serializationService != null) {
            key = serializationService.toObject(keyData);
        }
        return key;
    }
@Test
    public void testGetKey_withDataKey() {
        assertEquals("key", dataEvent.getKey());
    }