@Test
public void shouldConvertJsonValueToJsonValue() throws IOException {

    final JsonObject payload = createObjectBuilder().add("myString", "newTest").build();
    final Envelope<JsonValue> inputEnvelope = getEnvelope(payload);
    final Envelope<JsonValue> objectEnvelope = convert(inputEnvelope, JsonValue.class);
    assertThat(objectEnvelope.payload(), isA(JsonValue.class));
    assertThat(objectEnvelope.payload().toString(), hasJsonPath("$.myString", equalTo("newTest")));
}