@Test(expected = IllegalArgumentException.class)
public void shouldThrowExceptionWhenProvidedEnvelopeWithoutMetadata() throws IOException {

    jsonObjectEnvelopeConverter.fromEnvelope(envelopeFrom((Metadata) null, createObjectBuilder().build()));
}