String[] persistType = new String[] { ENTRY_TYPE_MSG_SERIAL, ENTRY_TYPE_MSG_XML };
int numRuns = 4;
for(int ii=0; ii<numRuns; ii++) {
for(int jj=0; jj<persistType.length; jj++) {
PublishKey publishKey = new PublishKey(glob, "HA");
PublishQosServer publishQosServer = new PublishQosServer(glob, "<qos><persistent/></qos>");
publishQosServer.getData().setPriority(PriorityEnum.HIGH_PRIORITY);
MsgUnit msgUnit = new MsgUnit(publishKey.getData(), "HO".getBytes(), publishQosServer.getData());
StorageId storageId = new StorageId(glob, "heron", "mystore", "someid");
MsgUnitWrapper msgUnitWrapper = new MsgUnitWrapper(glob, msgUnit, null, storageId, 0, 0, persistType[jj], -1);
msgUnitWrapper.startExpiryTimer();
I_EntryFactory factory = glob.getEntryFactory();