def METHOD_NAME(self):
    """Verify that to_dict() works when all the data is in place.
    """
    doc_obj = Doc(
        id="id",
        title="title",
        authentication_flows=[MockFlow("hello")],
        links=[
            dict(rel="register", href="http://registration/")
        ]
    )
    doc = doc_obj.to_dict("argument")
    assert (
        {'id': 'id',
         'title': 'title',
         'authentication': [
             {'arg': 'argument',
              'description': 'hello',
              'type': 'http://mock1/'}
         ],
         'links': [{'href': 'http://registration/', 'rel': 'register'}],
        } ==
        doc)