AMQMessage message = new AMQMessage(_store.getNewMessageId(),
info,
new NonTransactionalContext(_store, _storeContext, null, null, null),
createPersistentContentHeader());
message = message.takeReference();
// we call routing complete to set up the handle
message.routingComplete(_store, _storeContext, new MessageHandleFactory());
assertTrue(_store.getMessageMetaDataMap().size() == 1);
message = message.takeReference();
message.decrementReference(_storeContext);