@Test
public void shouldProvideDefaultJsonEnvelopeFromMetadataAndJsonValue() throws Exception {

    final Metadata metadata = mock(Metadata.class);
    final JsonValue payload = mock(JsonValue.class);
    final JsonEnvelope envelope = new DefaultJsonEnvelopeProvider().envelopeFrom(metadata, payload);
    assertThat(envelope, instanceOf(DefaultJsonEnvelope.class));
    assertThat(envelope.metadata(), is(metadata));
    assertThat(envelope.payload(), is(payload));
}