[SPARK-4631] unit test for MQTT

Please review the unit test for MQTT
Shouldnt there be a `finally` to close any running servers (client, etc.)?