<div dir="ltr">I&#39;ve research about how to confirm if my message was publish successfully to rabbit queue. �I&#39;m using basicPublish to produce the message with mandatory flag set to true. �I did a negative test where I provide the correct exchange name but an invalid routing key. �However, I don&#39;t know how to capture the basic.return in my code to see if it was successful or not. �I was hoping it would goto the catch block but obviously it didn&#39;t.</div>