def METHOD_NAME(self, helpers_mock):
    target_index = 'amazing_index'
    addon1 = addon_factory()
    addon2 = addon_factory()
    fake_extract = {
        addon1.pk: mock.Mock(),
        addon2.pk: mock.Mock(),
    }
    with mock.patch.object(
        AddonIndexer, 'extract_document', lambda a: fake_extract[a.pk]
    ):
        index_objects(
            queryset=Addon.objects.filter(id__in=(addon1.pk, addon2.pk)),
            indexer_class=AddonIndexer,
            index=target_index,
        )
    bulk_mock = helpers_mock.bulk
    assert bulk_mock.call_count == 1
    assert bulk_mock.call_args[0][1] == [
        {
            '_source': fake_extract[addon1.pk],
            '_id': addon1.pk,
            '_index': target_index,
        },
        {
            '_source': fake_extract[addon2.pk],
            '_id': addon2.pk,
            '_index': target_index,
        },
    ]