This will allow us to test the client works correctly without a connection to an mqtt server and allow us to test for bad responses more easily.