This tutorial describes how to create a simple test of an MQTT broker.
One test case will send a message to the broker and then will simulate a connection break. Another test case will listen to the broker and receive messages from it.
Sample MQTT Broker
The tutorial uses a free HiveMQ public broker. You can find it at the following address:
The broker also provides a server dashboard.