def METHOD_NAME(self):
    """Test tcp with parameters"""
    with self.patch_tcp_statsd_client(side_effect=FakeStatsD) as fake_statsd:
        with self.assertRaises(AnsibleExitJson) as result:
            set_module_args({
                'protocol': 'tcp',
                'metric': 'my_counter',
                'metric_type': 'counter',
                'value': 1,
            })
            self.module.main()
        self.assertEqual(result.exception.args[0]['msg'], 'Sent counter my_counter -> 1 to StatsD')
        self.assertEqual(result.exception.args[0]['changed'], True)
    with self.patch_tcp_statsd_client(side_effect=FakeStatsD) as fake_statsd:
        with self.assertRaises(AnsibleExitJson) as result:
            set_module_args({
                'protocol': 'tcp',
                'metric': 'my_gauge',
                'metric_type': 'gauge',
                'value': 3,
            })
            self.module.main()
        self.assertEqual(result.exception.args[0]['msg'], 'Sent gauge my_gauge -> 3 (delta=False) to StatsD')
        self.assertEqual(result.exception.args[0]['changed'], True)