for (int i = 0; i < 10; i++) {
final List<MessageContext> m5 = consumer.readMessages(10);
Assert.assertEquals(1, m5.size());
long systemtime = System.currentTimeMillis();
MessageContext m = Iterables.getFirst(m5, null);
LOG.info("MessageTime: " + (systemtime - m.getMessage().getTrigger().getTriggerTime()));
consumer.ackMessages(m5);
}
}