@Test
public void buildMessageShouldReturnSameUUID() {

    final String input = UUID.randomUUID().toString();
    Message message = EventPublisher.buildMessage(TEST_CONFIGURATION,
            new ContainsId<String>() {
                @Override
                public void setId(String id) {}
                @Override
                public String getId() {
                    return input;
                }
            }
    );
    String output = message.getBodyAs(String.class);
    Assert.assertEquals(input, output);
}