def METHOD_NAME(app, session, mocker, status, filing_type, submitter_role):
    """Assert that the legal name is changed."""
    # setup filing + business for email
    filing = prep_maintenance_filing(session, 'BC1234567', '1', status, filing_type, submitter_role=submitter_role)
    token = 'token'
    # test processor
    mocker.patch(
        'entity_emailer.email_processors.filing_notification.get_user_email_from_auth',
        return_value='user@email.com')
    with patch.object(filing_notification, '_get_pdfs', return_value=[]) as mock_get_pdfs:
        with patch.object(filing_notification, 'get_recipients', return_value='test@test.com') \
                as mock_get_recipients:
            email = filing_notification.process(
                {'filingId': filing.id, 'type': filing_type, 'option': status}, token)
            if filing_type == 'alteration':
                if submitter_role:
                    assert f'{submitter_role}@email.com' in email['recipients']
                else:
                    assert 'user@email.com' in email['recipients']
            assert 'test@test.com' in email['recipients']
            assert email['content']['body']
            assert email['content']['attachments'] == []
            assert mock_get_pdfs.call_args[0][0] == status
            assert mock_get_pdfs.call_args[0][1] == token
            assert mock_get_pdfs.call_args[0][2]['identifier'] == 'BC1234567'
            assert mock_get_pdfs.call_args[0][2]['legalType'] == Business.LegalTypes.BCOMP.value
            assert mock_get_pdfs.call_args[0][2]['legalName'] == 'test business'
            assert mock_get_pdfs.call_args[0][3] == filing
            assert mock_get_recipients.call_args[0][0] == status
            assert mock_get_recipients.call_args[0][1] == filing.filing_json
            assert mock_get_recipients.call_args[0][2] == token