@Test
public void shouldConvertPojoToJsonValue() throws IOException {

    final Envelope<TestObject> inputEnvelope = getEnvelope(new TestObject("test"));
    final Envelope<JsonValue> resultEnvelope = convert(inputEnvelope, JsonValue.class);
    final JsonObject payload = (JsonObject) resultEnvelope.payload();
    assertThat(payload.getValueType(), is(OBJECT));
    assertThat(payload.toString(), hasJsonPath("$.myString", equalTo("test")));
}