MessageIdFactory factory = new MockMessageIdFactory();
long now = 1343532130488L;
int num = 100;
factory.setIpAddress("7f000001");
factory.initialize("source");
localManager.setBaseDir(new File("target/bucket/hdfs/dump")); // make local and hdfs base dir same
for (int i = 0; i < num; i++) {
MessageTree tree = newMessageTree(factory.getNextId(), i, now + i * 10L);
MessageId id = MessageId.parse(tree.getMessageId());