def METHOD_NAME(self, mock_async_task):
    self.command.handle(all_courses=True, force_update=True, routing_key='my-routing-key', chunk_size=10000)
    called_kwargs = mock_async_task.apply_async.call_args_list[0][1]
    assert sorted([str(self.course_key_1), str(self.course_key_2)]) ==\
           sorted(called_kwargs.pop('args'))
    assert {'kwargs': {'force_update': True}, 'routing_key': 'my-routing-key'} == called_kwargs
    assert 1 == mock_async_task.apply_async.call_count