}
@Test
public void testAndMetaData() {
Map<String, Object> metaDataMap = Collections.singletonMap("key", (Object) "value");
MetaData metaData = MetaData.from(metaDataMap);
when(serializer.deserialize(serializedMetaData)).thenReturn(metaData);
EventMessage<Object> message = new SerializedEventMessage<Object>(eventId, timestamp, serializedPayload,
serializedMetaData, serializer);
EventMessage<Object> message1 = message.andMetaData(MetaData.emptyInstance());
EventMessage<Object> message2 = message.andMetaData(