@Test
public void testBuildEventShouldReturnSameData() {

    byte[] input = "abc".getBytes(Charset.forName("UTF-8"));
    Message message = new Message().body(input);
    EventConsumer eventConsumer = buildEventConsumer(TestEventContainsData.class);
    TestEventContainsData event = (TestEventContainsData)eventConsumer.buildEvent(message);
    byte[] output = event.getData();
    Assert.assertNotNull(output);
    Assert.assertArrayEquals(input, output);
}