def METHOD_NAME(self):
    """
    nats connection test
    """
    self.render_config_template(modules=[{
        "name": "nats",
        "metricsets": ["connection"],
        "hosts": self.get_hosts(),
        "period": "5s",
        "connections.metrics_path": "/connz"
    }])
    proc = self.start_beat()
    self.wait_until(lambda: self.output_lines() > 0)
    proc.check_kill_and_wait()
    self.assert_no_logged_warnings()
    output = self.read_output_json()
    self.assertEqual(len(output), 1)
    evt = output[0]
    self.assertCountEqual(self.de_dot(NATS_FIELDS), evt.keys(), evt)
    self.assert_fields_are_documented(evt)