Just a quick followup, since I seem to have figured this out, running Node Red and using RabbitMQ as the underlying MQTT broker (both on my MacBook laptop).
The one glitch I have that I can't explain by looking at any docs I have found is that when I publish an MQTT message to
it comes back out of RabbitMQ on the channel
test/example/com/foo
i.e. all dots are converted to slashes in the process. This requires that Node Red nodes that subscribe to a particular channel or wildcard get adjusted for the new name, and also requires that I have the right kind of naming conventions adjusted for other things.
Onwards...
Ed