@Test(expected = IllegalArgumentException.class)
public void shouldThrowExceptionOnNullEvent() throws Exception {

    enveloper.withMetadataFrom(envelopeFrom(metadataBuilder().withId(randomUUID()).withName("name"), createObjectBuilder())).apply(null);
}