@Test(expected = IllegalArgumentException.class)
public void shouldThrowExceptionOnArrayPayloadType() {

    jsonObjectEnvelopeConverter.fromEnvelope(
            envelopeFrom(metadataBuilder().withId(randomUUID()).withName("name"),
                    createArrayBuilder().add(ARRAY_ITEM_1).add(ARRAY_ITEM_2).build()));
}