@Test
public void shouldHandleNullPojo() throws IOException {

    final TestObject testObject = null;
    final Envelope<TestObject> inputEnvelope = getEnvelope(testObject);
    final Envelope<DifferentTestObject> differentTestObjectEnvelope = convert(inputEnvelope, DifferentTestObject.class);
    assertThat(differentTestObjectEnvelope.payload(), nullValue());
}