@Test
public void shouldConvertJsonEnvelopeToPojo() throws IOException {

    final JsonObject payload = createObjectBuilder().add("myString", "newTest").build();
    final Envelope<JsonValue> inputEnvelope = getJsonEnvelope(payload);
    final Envelope<TestObject> resultEnvelope = convert(inputEnvelope, TestObject.class);
    final TestObject testObject = resultEnvelope.payload();
    assertThat(testObject, isA(TestObject.class));
    assertThat(testObject.getMyString(), is("newTest"));
}