@Test
public void shouldConvertJsonEnvelopeToJsonEnvelope() throws IOException {

    final JsonObject payload = createObjectBuilder().add("myString", "newTest").build();
    final JsonEnvelope inputEnvelope = getJsonEnvelope(payload);
    final Envelope<JsonValue> resultEnvelope = convert(inputEnvelope, JsonValue.class);
    final JsonObject returnedPayload = (JsonObject) resultEnvelope.payload();
    assertThat(returnedPayload.getValueType(), is(OBJECT));
    assertThat(returnedPayload.toString(), hasJsonPath("$.myString", equalTo("newTest")));
}