def METHOD_NAME(self):
    """tests sending a message with a thread"""
    set_module_args({
        'token': 'XXXX/YYYY/ZZZZ',
        'msg': 'test',
        'thread_id': '100.00'
    })
    with patch.object(slack, "fetch_url") as fetch_url_mock:
        fetch_url_mock.return_value = (None, {"status": 200})
        with self.assertRaises(AnsibleExitJson):
            self.module.main()
        self.assertTrue(fetch_url_mock.call_count, 1)
        call_data = json.loads(fetch_url_mock.call_args[1]['data'])
        assert call_data['username'] == "Ansible"
        assert call_data['text'] == "test"
        assert call_data['thread_ts'] == '100.00'
        assert fetch_url_mock.call_args[1]['url'] == "https://hooks.slack.com/services/XXXX/YYYY/ZZZZ"