def METHOD_NAME(make_stubber, make_queue, body_template, attributes, count):
    """Test that sending various batches of messages returns the expected list of
    successful sends."""
    sqs_stubber = make_stubber(message_wrapper.sqs.meta.client)
    queue = make_queue(sqs_stubber, message_wrapper.sqs)
    messages = [{
        'body': body_template.format(ind),
        'attributes': attributes
    } for ind in range(1, count+1)]
    sqs_stubber.stub_send_message_batch(queue.url, messages)
    response = message_wrapper.send_messages(queue, messages)
    assert len(response['Successful']) == count