How can i perform integration tests with Azure Service Bus?

I'm trying to perform an integration test where an API endpoint is hit, it processes the request (save information to a integration database) and sends a message to a queue in azure. I want to be able to test that a message can be sent correctly with the correct information.

For the database we spin up a new database, run migrations complete the tests then destroy the database. Is there something similar that can be done with Azure service bus? Or even a in-memory service bus that acts in the same way as one in azure?

I am quite new to integration testing so I'm not sure if this is even something I should be testing for.

My thought process is to send a message to some sort of test queue and then receive it during the test and check it matches what I'm expecting.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum