public Data getKeyData() {
        if (keyData == null && serializationService != null) {
            keyData = serializationService.toData(key);
        }
        return keyData;
    }
@Test
    public void testGetKeyData_withObjectKey() {
        assertEquals(toData("key"), objectEvent.getKeyData());
    }