Shouldn't your mock keep track of the published messages such that your tests can check that messages were published as expected?