def METHOD_NAME(
        self, url, messages, receive_count, error_code=None,
        message_attributes=['All'], omit_wait_time=False):
    expected_params = {'QueueUrl': url}
    if receive_count is not None:
        expected_params['MaxNumberOfMessages'] = receive_count
    if not omit_wait_time:
        expected_params['WaitTimeSeconds'] = ANY
    if message_attributes is not None:
        expected_params['MessageAttributeNames'] = ['All']
    if receive_count is None:
        receive_count = len(messages)
    response = {
        'Messages': [{
            'MessageId': f'msg-{ind}',
            'Body': msg['body'],
            'MD5OfBody': 'Test-MD5-Body',
            'ReceiptHandle': f'Receipt-{ind}'
        } for ind, msg in enumerate(messages) if ind < receive_count]
    }
    self._stub_bifurcator(
        'receive_message', expected_params, response, error_code=error_code)