def METHOD_NAME(self):
    desc = FormDescription("post", "/submit")
    desc.add_field(
        "name",
        label="label",
        field_type="text",
        default="default",
        placeholder="placeholder",
        instructions="instructions",
        required=True,
        exposed=True,
        restrictions={
            "min_length": 2,
            "max_length": 10
        },
        error_messages={
            "required": "You must provide a value!"
        },
        supplementalLink="",
        supplementalText="",
    )
    assert desc.to_json() ==\
           json.dumps({'method': 'post',
                       'submit_url': '/submit',
                       'fields': [{'name': 'name', 'label': 'label', 'type': 'text', 'defaultValue': 'default',
                                   'placeholder': 'placeholder', 'instructions': 'instructions', 'exposed': True,
                                   'required': True, 'restrictions': {'min_length': 2, 'max_length': 10},
                                   'errorMessages': {'required': 'You must provide a value!'},
                                   'supplementalLink': '', 'supplementalText': '',
                                   'loginIssueSupportLink': 'https://support.example.com/login-issue-help.html'}]})