def METHOD_NAME(self):
    template = MonitorTemplate(
        '''
        resource "datadog_monitor" ${{monitor_id}} {
            argument1 = ${{argument1_value}} # comment
            argument2 = ${{argument2_value:-"default value for argument 2"}}
        }
        '''
    )
    variable1 = MonitorVariable(name='$monitor_id', value=random_string(), code_reference=any_code_reference())
    variable2 = MonitorVariable(name='$argument1_value', value=random_string(), code_reference=any_code_reference())
    monitor = MonitorConfiguration(
        type='',
        variables=[variable1, variable2],
        code_reference=any_code_reference()
    )
    rendered_template = template.render(monitor=monitor)
    expected_template = f'''
        resource "datadog_monitor" {variable1.value} {{
            argument1 = {variable2.value} # comment
            argument2 = "default value for argument 2"
        }}
        '''
    self.assertEqual(expected_template, rendered_template)