def METHOD_NAME(self):
    proxy = model.get_proxy(
        {
            "id": "banana",
            "schema": "Document",
        }
    )
    file_name = entity_filename(proxy)
    assert "banana" == file_name, file_name
    proxy = model.get_proxy(
        {
            "id": "banana",
            "schema": "Document",
            "properties": {
                "extension": [".doc"],
            },
        }
    )
    file_name = entity_filename(proxy)
    assert "banana.doc" == file_name, file_name
    proxy = model.get_proxy(
        {
            "id": "banana",
            "schema": "Document",
            "properties": {
                "mimeType": ["application/pdf"],
            },
        }
    )
    file_name = entity_filename(proxy)
    assert "banana.pdf" == file_name, file_name
    proxy = model.get_proxy(
        {
            "id": "banana",
            "schema": "Document",
            "properties": {
                "fileName": ["bla.doc"],
            },
        }
    )
    file_name = entity_filename(proxy)
    assert "bla.doc" == file_name, file_name
    file_name = entity_filename(proxy, extension="pdf")
    assert "bla.pdf" == file_name, file_name