### Question:
InvalidTypedMessage extends InvalidMessage implements TypedMessage { @Override public String getPayload() { throw getMessageParseException(); } InvalidTypedMessage(final String messageId, final String receiptHandle,
            final MessageParseException messageParseException); @Override String getType(); @Override String getPayload();  }### Answer:
@Test public void shouldNotReturnPayload() { MessageParseException thrownException = null; try { message.getPayload(); } catch (final MessageParseException e) { thrownException = e; } assertSame(messageParseException, thrownException); }