@Test
public void buildMessageShouldReturnSameLong() {

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