[SPARK-4631] unit test for MQTT