@Test
public void buildMessageShouldReturnSameText() {

    final String input = "testText";
    Message message = EventPublisher.buildMessage(TEST_CONFIGURATION,
            new ContainsContent<String>() {
                @Override
                public void setContent(String content) { }
                @Override
                public String getContent() {
                    return input;
                }
            }
    );
    String output = message.getBodyAs(String.class);
    Assert.assertEquals(input, output);
}