final Long messageId = _store.getNewMessageId();
final ContentHeaderBody chb = createPersistentContentHeader();
AMQMessageHandle messageHandle = (new MessageHandleFactory()).createMessageHandle(messageId, _store, true);
messageHandle.setPublishAndContentHeaderBody(_storeContext,info,chb);
AMQMessage message = new AMQMessage(messageHandle,
_storeContext,
info);
message = message.takeReference();
// we call routing complete to set up the handle
// message.routingComplete(_store, _storeContext, new MessageHandleFactory());
assertEquals(1, _store.getMessageMetaDataMap().size());
message = message.takeReference();
message.decrementReference(_storeContext);
assertEquals(1, _store.getMessageMetaDataMap().size());
}