//! Ensure that events are serialized and deserialized correctly.