### Question:
SimpleBasicMessage extends AbstractMessage implements BasicMessage { @Override public String getBody() { return body; } SimpleBasicMessage(final String body, final String messageId, final String receiptHandle);  SimpleBasicMessage(final String body); @Override String getBody();  }### Answer:
@Test public void shouldReturnBody() { final String body = randomString(); final String messageId = randomId(); final String receiptHandle = randomId(); final SimpleBasicMessage message = new SimpleBasicMessage(body, messageId, receiptHandle); final String result = message.getBody(); assertEquals(body, result); }
@Test public void shouldConstruct_withBody() { final String body = randomString(); final SimpleBasicMessage message = new SimpleBasicMessage(body); assertNull(message.getMessageId()); assertNull(message.getReceiptHandle()); assertEquals(body, message.getBody()); }